Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 482974 - app-laptop/laptop-mode-tools-1.63-r2 request for patch from upstream to fix board-specific .conf files
Summary: app-laptop/laptop-mode-tools-1.63-r2 request for patch from upstream to fix b...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: ARM Linux
: Normal normal (vote)
Assignee: Alon Bar-Lev (RETIRED)
URL: https://github.com/rickysarraf/laptop...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-08-30 03:29 UTC by Steev Klimaszewski (RETIRED)
Modified: 2013-08-30 18:17 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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!