! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
segfault when changing brightness
Status:
RESOLVED: FIXED
Product:
Xfce4-power-manager
Component:
General

Comments

Description charlie-tca 2010-01-30 17:23:18 CET
Created attachment 2806 
backtrace 

This bug has been reported on Ubuntu Launchpad as:
  https://bugs.launchpad.net/bugs/498715

From the launchpad report:

When I start my laptop usually the screen brightness is set to minimum. I have xfce4-power-manager running in e17. However trying to increase the screen brightness using the function keys fails.
Running xfce4-power-manager --no-daemon in a terminal gives the following output:

(xfce4-power-manager:2106): xfce4-power-manager-WARNING **: could not map keysym 1008ffa8 to keycode

and pressing one of the brightness function keys results in a segfault
.
However after setting the brightness manually via: echo 7 >/sys/class/backlight/sony/brightness
xfce4-power-manager works fine and setting the brightness works.

Backtrace attached.


Description: Ubuntu 9.10
Release: 9.10

$apt-cache policy xfce4-power-manager
xfce4-power-manager:
  Installed: 0.8.4-1ubuntu1
  Candidate: 0.8.4-1ubuntu1
  Version table:
 *** 0.8.4-1ubuntu1 0
        500 http://au.archive.ubuntu.com karmic/universe Packages
        100 /var/lib/dpkg/status
Comment 1 Ali Abdallah editbugs 2010-01-31 14:36:19 CET
Created attachment 2811 
Check brightness icon index

Thanks for the report, please try out the attached patch, but if possible, build the power manager with  --enable-debug=full, this will help me a lot.
Comment 2 Ali Abdallah editbugs 2010-02-03 17:54:16 CET
Since i don't have xubuntu, i can't provide a full debug build, i think instead of just saying "Please read the developers comments on the xfce bugzilla, they need some information", you can attach for him/her a full debug build for karmic, and tell him to attach it with gdb, then i will have a helpful back-trace, like that you will be helping me/him/her to solve this issue and improve the software.

Still waiting for news...
Comment 3 Ali Abdallah editbugs 2010-02-18 15:15:44 CET
(In reply to comment #2)
> Still waiting for news...

Any news on this? i really need to release a bug fix version, but i would like to make sure that this bug is fixed first.
Comment 4 cycomanic 2010-02-20 09:14:45 CET
Hi I'm the original bug submitter on launchpad. Sorry for the delay I somehow missed the status update on the launchpad bug. I rebuild xfce4-power-manager with your patch and --enable-debug=full. I don't see a segfault anymore however changing the brightness still does not work until I've once set the brightness manually (echo 7 > /sys/class/backlight/sony/brightness).

Attached are the output when running xfce4-power-manager --no-daemon and pressing the brightness change buttons, once when it is not working and the second after I manually set the brightness and it is working. 

Hope this helps you to track this down.

Cheers
Jochen
Comment 5 cycomanic 2010-02-20 09:15:52 CET
Created attachment 2854 
debug output when setting brightness fails
Comment 6 cycomanic 2010-02-20 09:16:42 CET
Created attachment 2855 
debug output when after setting brightness manually and it works with xfce4-power-manager
Comment 7 Ali Abdallah editbugs 2010-03-02 17:30:08 CET
(In reply to comment #6)
> Created an attachment (id=2855) [details]
> debug output when after setting brightness manually and it works with
> xfce4-power-manager

Please note that this bug is coming from HAL reporting wrong brightness level, but i added a work around of this problem with 0.8.5 which is just release, please try it out and report back.

Bug #6194

Reported by:
charlie-tca
Reported on: 2010-01-30
Last modified on: 2011-09-09

People

Assignee:
Ali Abdallah
CC List:
2 users

Version

Attachments

backtrace (2.19 KB, text/plain)
2010-01-30 17:23 CET , charlie-tca
no flags
Check brightness icon index (9.75 KB, patch)
2010-01-31 14:36 CET , Ali Abdallah
no flags
debug output when setting brightness fails (6.11 KB, application/octet-stream)
2010-02-20 09:15 CET , cycomanic
no flags
debug output when after setting brightness manually and it works with xfce4-power-manager (4.90 KB, application/octet-stream)
2010-02-20 09:16 CET , cycomanic
no flags

Additional information