Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 482974

Summary: app-laptop/laptop-mode-tools-1.63-r2 request for patch from upstream to fix board-specific .conf files
Product: Gentoo Linux Reporter: Steev Klimaszewski (RETIRED) <steev>
Component: Current packagesAssignee: Alon Bar-Lev (RETIRED) <alonbl>
Status: RESOLVED FIXED    
Severity: normal CC: alonbl
Priority: Normal    
Version: unspecified   
Hardware: ARM   
OS: Linux   
URL: https://github.com/rickysarraf/laptop-mode-tools/commit/6f81613ebd2ef7eba88ea2edd596f9441be2c294
Whiteboard:
Package list:
Runtime testing required: ---

Description Steev Klimaszewski (RETIRED) gentoo-dev 2013-08-30 03:29:07 UTC
If you have a Chromebook, one of the files that gets installed via their laptop-mode-tools is /etc/laptop-mode-tools/conf.d/board-specific/usb-autosuspend.conf

The code in /usr/sbin/laptop_mode looks at /etc/laptop-mode-tools/conf.d/board-specific*

So what happens is if you have e.g. that usb-autosuspend.conf file, there are messages printed when starting or stopping the service:

rose init.d # /etc/init.d/laptop_mode restart
 * Stopping laptop_mode ...
/usr/sbin/laptop_mode: line 239: .: /etc/laptop-mode/conf.d/board-specific: is a directory                                                                                                                                  [ ok ]
 * Starting laptop_mode ...
/usr/sbin/laptop_mode: line 239: .: /etc/laptop-mode/conf.d/board-specific: is a directory

Upstream has fixed it in the commit linked in the URL, by only looking for CONF/*.conf (iirc)  This fixes the issue and you see:

rose init.d # /etc/init.d/laptop_mode restart
 * Stopping laptop_mode ...                                                                                                                                                                                                 [ ok ]
 * Starting laptop_mode ...

Reproducible: Always
Comment 1 Alon Bar-Lev (RETIRED) gentoo-dev 2013-08-30 18:17:14 UTC
Fixed in laptop-mode-tools-1.63-r3, thanks!