bytbox / pommed-light Goto Github PK
View Code? Open in Web Editor NEWA trimmed version of the pommed hotkey handler for macbooks
Home Page: http://bytbox.net/blog/2012/04/light-pommed.html
License: GNU General Public License v2.0
A trimmed version of the pommed hotkey handler for macbooks
Home Page: http://bytbox.net/blog/2012/04/light-pommed.html
License: GNU General Public License v2.0
I am on Debian testing. My build fails and it looks like I have conflicting header files.
What can I do about this?
$ make
make -C pommed OFLIB=
make[1]: Entering directory `/usr/local/src/pommed-light/pommed'
gcc -g -O2 -Wall -I/usr/include/alsa -DNO_SYS_INOTIFY_H -DNO_SYS_TIMERFD_H -c -o evdev.o evdev.c
In file included from /usr/include/x86_64-linux-gnu/asm/fcntl.h:1:0,
from /usr/include/linux/fcntl.h:4,
from /usr/include/linux/inotify.h:11,
from evdev.c:37:
/usr/include/asm-generic/fcntl.h:171:8: error: redefinition of ‘struct flock’
In file included from /usr/include/fcntl.h:35:0,
from evdev.c:25:
/usr/include/x86_64-linux-gnu/bits/fcntl.h:35:8: note: originally defined here
make[1]: *** [evdev.o] Error 1
make[1]: Leaving directory `/usr/local/src/pommed-light/pommed'
make: *** [pommed] Error 2
How or where do I get support for a Macbook Air Early 2014? Many thanks,
The model indicated in /sys/class/dmi/id/product_name is "MacBookAir5,1"
On a stock Lubuntu 13.10 running on a MBP 8,1 I noticed that using acpi_video0 in /sys/class/backlight to control the backlight doesn't seem to work (kernel 3.13). In contrast to this, intel_backlight does seem to work.
As a quick workaround, inserting the respective /sys/class files in sysfs_backlight.c does the trick:
--- sysfs_backlight.c.org 2014-02-22 18:32:50.552133444 +0100
+++ sysfs_backlight.c 2014-02-22 18:06:00.186953043 +0100
@@ -70,6 +70,7 @@
"/sys/class/backlight/apple_backlight/actual_brightness",
"/sys/class/backlight/nvidia_backlight/actual_brightness",
"/sys/class/backlight/nv_backlight/actual_brightness",
Caveat: I don't know why yet, but in order to make this work, acpi_video0 cannot
be present in the backlight directory, so acpi_backlight=vendor as a kernel parameter has to be stated during boot.
In line 51 of my log, you can find that the internal keyboard is discarded. This is because its product ID (0x0252
) is not between the ones in evdev.h. Any idea why my product id is not in the list? Maybe it's a typo (0x0262
instead of 0x0252
)?
Note: my keyboard has been replaced in the past, so this might be the reason why it's not "Wellspring V" but "Apple Internal Keyboard / Trackpad".
/usr/bin/pommed -d
I: pommed v1.45lw Apple laptops hotkeys handler
I: Copyright (C) 2006-2011 Julien BLACHE [email protected]
pommed configuration:
Hi!
Is it possible to add support for MacBookPro 9,2? I made a fork and tried, however, I get the following error: "E No suitable event devices found". I get that the changes I made (basically just add a new Enum-value and a strcmp) are not enough. What is needed to make it work?
Best regards,
Isak
DMI vendor name: [Apple Inc.]
DMI product name: [MacBook4,1]
System: Linux 3.16.3-gentoo-core2 x86_64
GMA950/GMA965 PCI resource: [/sys/bus/pci/devices/0000:00:02.0/resource0], length 1024K
E: mmap failed: Resource temporarily unavailable
E: Could not map GMA950/GMA965 memory
E: LCD backlight probe failed, check debug output
I: pommed v1.45lw Apple laptops hotkeys handler
I: Copyright (C) 2006-2011 Julien BLACHE [email protected]
pommed configuration:
Looks like it's been just about 2 years since the last release. Are there plans to cut a new release soon? Would be nice to see #26 and #28 released.
Hoping to get this added to the support list. Not sure that much changed from 6,1/2.
No problems if I restart the service after boot, so this seems to be a race condition.
boot_fail_log.txt
boot_fixed_log.txt
pommed.service.txt
To save you digging through the logfiles to check:
Arch Linux
MacBookPro5,5
Attached are logs before and after I changed the pommed.service file to set After=sound.target, and WantedBy=sound.target
Not the most elegant approach (since it assumes we are using the volume control hotkeys).
Ive got a very new (either late 2014 or early 2015) macbook pro that pommed doesnt seem to recognize.
Debug output: http://pastebin.com/1xwMwe59
The relevant error:
E: mmap failed: Resource temporarily unavailable
E: Could not map GMA950/GMA965 memory
E: LCD backlight probe failed, check debug output
Running on Linux 3.8.11, (Arch Linux with systemd).
It used to work a few months ago when I last used linux on this machine, but I could not say which version.
Also tried the pommed arch packages pommed and pommed-git, but they give the same error.
Currently on a macbook pro (mid 2010) using pommed because nvidia-bl is no longer working for some reason. The brightness keys don't seem to work at all unless i am in a TTY, they have no effect in GDM or the DE (cinnamon). However, if I adjust the brightness while in a TTY, the brightness change stays when switching back to cinnamon or GDM. Also, there are only 3 brightness steps, how can I have more steps, and why does it not work in cinnamon/GDM?
pommed -d output: https://haste.gradyn.com/95hE1YTuQK.makefile
I enabled the pommed.service but it fails (only) after boot:
E: sysfs backlight probe failed, no fallback for this machine
E: LCD backlight probe failed, check debug output
But if I systelctl restart pommed
, pommed starts and runs good.
Otherwise, when nvidia-bl is installed (with apple_bl kernel module disabled), pommed does not crash after boot but the screen backlight Fx keys (and only them) have no effect.
PS : Et merci pour le travail fourni jusqu'ici ! 👍
Macro is outdated. Right now it says #define M_VERSION "1.45lw"
Just got my new retina MacBook Pro (Early 2015) and would like to add support for my generation to pommed. Where do I start?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.