LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Gentoo
User Name
Password
Gentoo This forum is for the discussion of Gentoo Linux.

Notices


Reply
  Search this Thread
Old 06-07-2015, 08:19 PM   #1
exvor
Senior Member
 
Registered: Jul 2004
Location: Phoenix, Arizona
Distribution: Gentoo, LFS, Debian,Ubuntu
Posts: 1,537

Rep: Reputation: 87
Systemd brightness keys


I have installed Gentoo on a macbook air 2013 model. This is not the first install of Linux that has been on this computer but I seam to be having some problems with systemd now and brightens keys. First of all the brightness control for the keyboard and the backlight both dont work when not in a window manager. I suspect this is normal.

However after I launch X windows and attempt to use the keys the window manager is freezing and you can no longer interact with the desktop. This only seams to occur with enlightenment and xfce4 (these are the only ones tested currently compiling gnome to see if problem still occurs). Blackbox for example does not have this issue but that is a very minimal window manager that does not attempt to manage the backlight.

The system is not frozen as I can pop over to another virtual terminal via the ctrl alt f6 method and terminate the X process.

I checked the system logs via the journalctl function but it shows me nothing of value. There is a CPU error with pipe underrun error but I suspect that is a problem with the custom backlight driver that you have to run on this computer so that suspend resume brightness is not broken. I am currently running kernel 4.0.4 and have also tested with the gentoo kernel sources and still the same issue occurs.


Some things to note;

I have had gentoo recently on this same computer and was running OpenRC and did not have this problem. I have also had Ubuntu 15 on this computer and it is running systemd and I was not having this problem in unity as I was able to change the brightness of the screen or the keyboard without problem.

I am not sure how exactly systemd handles the events that are generated from pressing either of these keys and how they are processed by the system to be causing the windows manager hang like this it really is a mystery and the journal logs are not giving me much info to work with.

Any suggestions or possible ways I get get more info would be very much appreciated.


Thank you
 
Old 06-08-2015, 02:17 AM   #2
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
Quote:
Originally Posted by exvor View Post
I am not sure how exactly systemd handles the events that are generated from pressing either of these keys and how they are processed by the system to be causing the windows manager hang like this it really is a mystery and the journal logs are not giving me much info to work with.
systemd doesn't handle this keys at all, it is always one of the DE's programs that do that. On XFCE, for example, it is xfce4-power-manager that handles these settings. Where your USE flags for xfce4-power-manager the same when running OpenRC instead of systemd?
 
Old 06-08-2015, 11:39 AM   #3
exvor
Senior Member
 
Registered: Jul 2004
Location: Phoenix, Arizona
Distribution: Gentoo, LFS, Debian,Ubuntu
Posts: 1,537

Original Poster
Rep: Reputation: 87
I sort of figured this out...

I disabled and masked the systemd-brightness@devicename.service files and rebooted the system. After this I no longer got freezes when using the brightness keys for the keyboard and backlight. I suspect that what is going on is the window manager DE is trying to set the new brightness setting and systemd is trying to update its info as these services restore brightness only from what I read and there is a infinite loop occurring or some other invalid call is occurring.

You are correct tho that systemd does not control the brightness but it does save and restore the levels on boot and shutdown. I suspect its just bad code and other distributions mask the service as its probably buggy. That or its possible that my hardware just does not like the way systemd is trying to update data ( possibly trying to write to nvram )

FYI - I did attempt to upgrade to the newest version of systemd by putting in a package.accept.keyword for systemd ~amd64 but it did not reslove the problem.
 
Old 06-08-2015, 11:44 AM   #4
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
That is weird, I never masked that service and it just worked for me using xfce4-power-manager (though I am not using that anymore, a power-manager without an option to shutdown the system is just weird), but maybe it is just an incompatibility with your hardware. It may help to report that bug so that it get fixed upstream.
 
Old 06-08-2015, 01:27 PM   #5
exvor
Senior Member
 
Registered: Jul 2004
Location: Phoenix, Arizona
Distribution: Gentoo, LFS, Debian,Ubuntu
Posts: 1,537

Original Poster
Rep: Reputation: 87
I would report it to the systemd guys but I worry that it will just be ignored because I cannot give them any useful data ( logs, dmesg data, etc ). All I get is a buffer underrun error that I think is semi related with the custom backlight driver.

Its also possible that I am missing something from my kernel .config that is causing it as well.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
brightness not getting adjusted by control keys. sumant_dev Linux - Newbie 0 12-13-2012 03:44 PM
X201 brightness keys not working gregnorc Linux - Laptop and Netbook 10 05-23-2010 10:30 AM
Brightness control Keys not working ravisagar Fedora 0 07-18-2009 10:53 PM
Change brightness with Fn keys rejeep Linux - Laptop and Netbook 2 04-15-2007 03:56 AM
Fn Keys & Brightness epicadop Linux - Laptop and Netbook 3 11-16-2004 10:23 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Gentoo

All times are GMT -5. The time now is 10:48 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration