Results 1 to 4 of 4

Thread: compal-laptop module fully inside the kernel?

  1. #1
    Join Date
    Mar 2008
    Beans
    157
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Arrow compal-laptop module fully inside the kernel?

    as of jaunty, it seems to be there for sure, however the 'battery charge level' function clearly isnt, which is odd...
    all of the other sys items are there.

    the full compal-laptop modules should also create the:
    cat /sys/devices/platform/compal-laptop/charging_level
    entries, and it hasnt.

    anyone with more knowlegde or better understanding of this would care to shed a light?

    also, as of kernel .27 the compal-laptop module was added to the main linux kernel.


    cheers

  2. #2
    Join Date
    Mar 2008
    Beans
    157
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: compal-laptop module fully inside the kernel?

    no one knows as usual...

  3. #3
    Join Date
    Aug 2008
    Location
    germany
    Beans
    857

    Re: compal-laptop module fully inside the kernel?

    Hi.

    http://eko.one.pl/index.php?page=compal-laptop

    Get the driver. The implementation into the kernel means you will be able to access this module if you have an appropriate driver...

    Code:
    [root@tiffy compal-laptop-0.2.9-2.6.29]# pwd
           /opt/compal-laptop-0.2.9-2.6.29
    [root@tiffy compal-laptop-0.2.9-2.6.29]# cd ..
    [root@tiffy opt]# mv compal-laptop-0.2.9-2.6.29/ /usr/src/
    [root@tiffy opt]# cd /usr/src/
    [root@tiffy src]# ls
           akmods  compal-laptop-0.2.9-2.6.29  kernels
    [root@tiffy src]# cd compal-laptop-0.2.9-2.6.29/
    [root@tiffy compal-laptop-0.2.9-2.6.29]# ls
           compal-laptop-0.2.9-2.6.29.patch  compal-laptop.c  Makefile
    [root@tiffy compal-laptop-0.2.9-2.6.29]# make && make install
           Building Compal Laptop Extras...
           make[1]: Entering directory `/usr/src/kernels/2.6.29.4-167.fc11.x86_64'
             CC [M]  /usr/src/compal-laptop-0.2.9-2.6.29/compal-laptop.o
             Building modules, stage 2.
             MODPOST 1 modules
             CC      /usr/src/compal-laptop-0.2.9-2.6.29/compal-laptop.mod.o
             LD [M]  /usr/src/compal-laptop-0.2.9-2.6.29/compal-laptop.ko
           make[1]: Leaving directory `/usr/src/kernels/2.6.29.4-167.fc11.x86_64'
           Installing Compal Laptop Extras...
           mkdir -p /lib/modules/`uname -r`/kernel/drivers/platform/x86
           rm /lib/modules/`uname -r`/kernel/drivers/platform/x86/compal-laptop.ko
           cp compal-laptop.ko /lib/modules/`uname -r`/kernel/drivers/platform/x86/
           depmod -ae
    [root@tiffy compal-laptop-0.2.9-2.6.29]# insmod ./compal-laptop.ko 
    [root@tiffy compal-laptop-0.2.9-2.6.29]# grep compal /proc/modules 
           compal_laptop 5496 0 - Live 0xffffffffa0907000
    [root@tiffy compal-laptop-0.2.9-2.6.29]# cd /sys/devices/platform/
    [root@tiffy platform]# ls
           compal-laptop     i8042     pcspkr  regulatory.0  uevent
           Fixed MDIO bus.0  iTCO_wdt  power   serial8250    vesafb.0
    [root@tiffy platform]# cd compal-laptop/
    [root@tiffy compal-laptop]# ls
           bluetooth  charging_level  driver  modalias  power  subsystem  uevent  wlan
    [root@tiffy compal-laptop]# cat charging_level 
           80
    [root@tiffy compal-laptop]#
    Last edited by loomsen; June 3rd, 2009 at 11:30 AM.

  4. #4
    Join Date
    Mar 2008
    Beans
    157
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: compal-laptop module fully inside the kernel?

    thanks, i got this by default:
    bluetooth driver modalias power raw subsystem uevent wlan

    but im goign to try the modules compal-laptop supplies(with your instructions).
    cheers and many many thanks!

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •