-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Screen freeze when changing brightness #223
Comments
Please execute ddcutil environment --verbose as root, and submit the output as an attachment. Please describe your hardware and software environment. If you are using an old version of dccutil, which is probably the case if you've used the version included in a distribution, please try with version 1.1.0 or later from this repo, |
log.txt
|
Hangs like this have been seen before. They are quite elusive to diagnose. See #159 #131 #86. Are you running ddcutil in a script? Try running ddcutil --trace i2c --tid setvcp 10 n (where n is your desired brightness level). This should help identify the system call that is hanging. Also, the dmesg output may give a clue as to what is happening. I would expect that ps output will show that ddcutil is in status uninterruptible sleep (D). |
Yes I'm running it from script
this is the output of |
Your script should pose no problems. The concern would be if multiple ddcutil calls occured in succession. I should have been clearer. I need to see the output of ddcutil --trace i2c --tid setvcp 10 90 for a run that hangs, which should indicate the system call that's hanging. It's a nuisance, I know, to see all that output if the hangs are only occasional. More precisely, I only need to see the last 20 lines or so before the hang, not the full output, so it should be possible to screen scrape the needed information. |
I'm not sure if this output works, but I ran this |
Having returned from vacation and now having good internet access, I've taken another look at hangs and other failures with the amdgpu driver. What they have in common is a Navi GPU. There was a bug in the amdgpu driver that should have been fixed by now - see sensors-detect causes amdgpu kernel errors when probing i2c bus There's a workaround for this problem in ddcutil 1.1.0, but it may not be robust enough. See issue #194. As the next step in diagnosing this situation, please run the following command and submit the output as an attachment:
|
I did notice that bug before when probing the I2C bus with either It is interesting to see Rashad having some success with Here is the output from your requested command:
|
Won't open new bugreport, as my issue seems to be similar. Arch kernel 5.15.5, ddcutil 1.1.0, AMD Radeon RX 6900 XT. Made two keybindings for brightness control "ddcutil setvcp 10 + 10" (and -10). Workaround is adding "--bus 4" to command, it seems without such param ddcutil is touching some other i2c bus in a way AMDGPU doesn't like it. |
I'm trying to use ddcutil to change brightness of external monitor, sometimes running the command from terminal works and sometimes freeze the screen until I reboot, I also want to use it with eww widget scale to change the brightness but always the screen freeze when I try to change it.
The text was updated successfully, but these errors were encountered: