Closed Buri closed 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
- New app: light + Orientation sends notification + unstick converted to bash
- Fixed .gitignore for compiled files
- light automaticaly manages screen backlight
Missed line in sensors/unstick
File Changes
- A .gitignore https://github.com/pfps/yoga-laptop/pull/5/files#diff-0 (8)
- A sensors/light https://github.com/pfps/yoga-laptop/pull/5/files#diff-1 (0)
- A sensors/light.c https://github.com/pfps/yoga-laptop/pull/5/files#diff-2 (486)
- M sensors/orientation https://github.com/pfps/yoga-laptop/pull/5/files#diff-3 (0)
- M sensors/orientation.c https://github.com/pfps/yoga-laptop/pull/5/files#diff-4 (779)
M sensors/unstick https://github.com/pfps/yoga-laptop/pull/5/files#diff-5 (10)
Patch Links:
- https://github.com/pfps/yoga-laptop/pull/5.patch
- https://github.com/pfps/yoga-laptop/pull/5.diff
— Reply to this email directly or view it on GitHub https://github.com/pfps/yoga-laptop/pull/5.
It happens because of access rights to backlight control. It requires root acces to read/write /sys/class/backlight/intel_backlight/brightness.
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