Re: MBA 11" 2012 with 12.04
How is battery life on it?
Re: MBA 11" 2012 with 12.04
regarding the applesmc error, can you check if the dmi_system_id on your system matches the DMI_BOARD_VENDOR and DMI_PRODUCT_NAME set on the applesmc module? source is on linux/drivers/hwmon/applesmc.c
If unsure, please paste the output of this command:
Code:
sudo dmidecode |egrep -i "(Product|Vendor)"
Re: MBA 11" 2012 with 12.04
Code:
$ sudo dmidecode |egrep -i "(Product|Vendor)"
Vendor: Apple Inc.
Product Name: MacBookAir5,1
Product Name: Mac-66F35F19FE2A0D05
Re: MBA 11" 2012 with 12.04
should be ok, it's a different problem then. Can you post the output when modprobing the module? I'd suggest adding printk's in the module and re-compile it to see how far it reaches, and where/why it fails.
Re: MBA 11" 2012 with 12.04
Hah, I was just Googling around and found this after commenting on a bug report for MBA not being supported with Lightum.
So I'll link to my comment there, which has the (fail) output from applesmc. https://github.com/poliva/lightum/is...omment-6445369
I don't know much about kernel hacking, but it seems to me like the API to interface with the SMC needs some updating for the new MBAs (I've got a 13'' 5,2 model).
Re: MBA 11" 2012 with 12.04
@aviromanoff: thanks for the output, the applesmc module source is here: http://x90.es/applesmc from the log you posted it looks like it's failing at applesmc_init() because read_smc() doesn't work (the key values are clearly wrong).
You will get more verbose information from /var/log/kern.log (because the module uses pr_info() which is not logged on dmesg). If possible, please run the following using two separate terminals:
CONSOLE1: sudo rmmod applesmc
CONSOLE2: tail -n 0 -f /var/log/kern.log
CONSOLE1: sudo modprobe applesmc
CONSOLE2: hit Ctrl+C
When done, please paste the output of kern.log.
Re: MBA 11" 2012 with 12.04
Thanks for the explanation & detailed instructions. I've actually just upgraded to Mountain Lion (and successfully borked my Linux install in the process), so it'll be an hour or so before I can get that output.
EDIT: Wow, one hour on the nose.
CONSOLE1: http://paste.ubuntu.com/1050724/
CONSOLE2: http://paste.ubuntu.com/1050721/
Unfortunately it doesn't look to me like there's much more info in kern.log than in dmesg.
Re: MBA 11" 2012 with 12.04
ok, no luck here either.
Let's start hacking the module source then ;)
1. Install the required dependencies to build the modules:
Code:
sudo apt-get build-dep --no-install-recommends linux-image-$(uname -r)
2. Get the kernel source:
Code:
apt-get source linux-image-$(uname -r)
3. Edit applesmc.c to apply your changes:
Code:
cd linux-$(uname -r|cut -d- -f1)/drivers/hwmon
vim applesmc.c
I'd start by printing messages like this:
Code:
pr_warn("applesmc_whatever failed\n");
4. Compile the module:
Code:
make -C /lib/modules/$(uname -r)/build M=$(pwd) applesmc.ko
5. try the compiled module:
Code:
sudo insmod ./applesmc.ko
The messages you have inserted using pr_warn() will be printed in dmesg each time you insmod the module, start with the applesmc_init() function, it's like main() in a regular C program.
Good luck and let us know your progress! (I'm available via gtalk if you need any further help with this).
Re: MBA 11" 2012 with 12.04
You might also want to have a look at this thread:
http://ubuntuforums.org/showthread.php?t=924096