Skip to content
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

ddcutil always coredumps #20

Closed
GoodMirek opened this issue Apr 28, 2017 · 6 comments
Closed

ddcutil always coredumps #20

GoodMirek opened this issue Apr 28, 2017 · 6 comments

Comments

@GoodMirek
Copy link

I run Fedora 25 64bit, with latest updates, on Dell Inspiron N5110, CPU: Intel i3-2350M, with integrated Intel graphics.

uname -a
Linux localhost.localdomain 4.10.11-200.fc25.x86_64 #1 SMP Tue Apr 18 17:25:01 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

Monitor attached via HDMI is LG 29UB67 Ultrawide. Internal laptop monitor is disabled via Gnome settings.

Whatever command I try, I get Segmentation fault (core dumped).
I run ddcutil as root. Commands I tried:

ddcutil detect
ddcutil  --force-slave-address detect
ddcutil environment
ddcutil --force environment

I have installed ddcutil with commands:

dnf config-manager --add-repo http://download.opensuse.org/repositories/home:rockowitz/Fedora_25/home:rockowitz.repo
dnf install ddcutil

which resulted in successful installation of following packages:

i2c-tools-3.1.0-17.fc25.x86_64.rpm
ddcutil-0.7.4-1.1.fc25.x86_64.rpm

i2c_dev kernel module is loaded, /dev/i2c-n devices are present.

lsmod | grep i2c
i2c_dev                16384  0
i2c_i801               24576  0
i2c_algo_bit           16384  1 i915

ls -l /dev/i2c-*
crw-------. 1 root root 89, 0 Apr 28 14:48 /dev/i2c-0
crw-------. 1 root root 89, 1 Apr 28 14:48 /dev/i2c-1
crw-------. 1 root root 89, 2 Apr 28 14:48 /dev/i2c-2
crw-------. 1 root root 89, 3 Apr 28 14:48 /dev/i2c-3
crw-------. 1 root root 89, 4 Apr 28 14:48 /dev/i2c-4
crw-------. 1 root root 89, 5 Apr 28 14:48 /dev/i2c-5
crw-------. 1 root root 89, 6 Apr 28 14:48 /dev/i2c-6
crw-------. 1 root root 89, 7 Apr 28 14:48 /dev/i2c-7

Do you have any idea how to troubleshoot?
Will coredump help you?

@GoodMirek
Copy link
Author

I tried also to switch selinux off, no change.

@rockowitz
Copy link
Owner

rockowitz commented Apr 28, 2017 via email

@rockowitz
Copy link
Owner

rockowitz commented Apr 28, 2017 via email

@GoodMirek
Copy link
Author

Thanks for quick response. I have installed 0.7.3 and got much farther. However, while trying to set brightness, ddcutil again crashes.
I have captured the output to the attached file. If I do not add command line options --force-slave-address -f --verify it makes no difference, the result is the same. Disabling selinux makes no difference.
ddcutil-error.txt

@rockowitz
Copy link
Owner

rockowitz commented Apr 29, 2017 via email

@GoodMirek
Copy link
Author

Thanks again for quick help!
Omitting 0x indeed helped. It is much more convenient to set backlight via keyboard than using LG's joystick to change settings buried deep in the OSD menu.

Btw maybe you could find following patch proposal interesting:
https://patchwork.kernel.org/patch/9530565/
If that ever gets implemented, it will bring convenience to yet another level.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants