pfps / yoga-laptop

Systems and information to make Lenovo Yoga laptops work better
GNU General Public License v3.0
156 stars 30 forks source link

Automatic backlight control #5

Closed Buri closed 10 years ago

Buri commented 10 years ago

I repurposed code from orientation and and generic_buffer. Still work in progress, more of proof of concept.

Future milestone: split to standalone driver and backlight controll connected via dbus

pfps commented 10 years ago

I pulled this.

However, I'm getting a segmentation faultwhen I run it.

peter

On 04/26/2014 10:24 AM, Jakub Buriánek wrote:

I repurposed code from orientation and and generic_buffer. Still work in progress, more of proof of concept.

Future milestone: split to standalone driver and backlight controll connected via dbus


    You can merge this Pull Request by running

git pull https://github.com/Buri/yoga-laptop master

Or view, comment on, or merge it at:

https://github.com/pfps/yoga-laptop/pull/5

    Commit Summary

— Reply to this email directly or view it on GitHub https://github.com/pfps/yoga-laptop/pull/5.

Buri commented 10 years ago

It happens because of access rights to backlight control. It requires root acces to read/write /sys/class/backlight/intel_backlight/brightness.