← Back to team overview

sony-vaio-z-series team mailing list archive

Re: Issues installing 0.9np8pre3 module

 

Thanks Norbert,

I would offer to help out in whatever way possible to this project. I'm just not a C hacker.


I did run make, then make test, and finally make install.

powertop reports 'no ACPI power usage estimate available', and devkit-power -d reports 0Wh.

This works:
$cat /proc/acpi/battery/BAT1/state shows anywhere from 20Wh 30+Wh (idle) on either speed or stamina mode. it never goes below 20Wh

Using the Gnome cpu frequency applet and powertop I can the the cpu's idling at 1.20 GHz. The applet seems to be working correctly.


-----------------------------------
This looks different from yours:

$ ls /sys/devices/platform/sony-laptop/
als_backlight als_defaults als_lux als_power battery_care_limiter handles kbd_backlight_timeout odd_power speed_stamina thermal_control touchpad als_backlight_levels als_kelvin als_managed battery_care_health driver kbd_backlight modalias power subsystem thermal_profiles uevent

----------------------------------
$sudo powertop

Cn                Avg residency       P-states (frequencies)
C0 (cpu running)        ( 2.8%)         2.54 Ghz     7.3%
polling           3.7ms ( 0.3%)         1.60 Ghz     2.3%
C1 mwait          0.2ms ( 0.9%)         1466 Mhz     7.6%
C2 mwait          1.1ms (21.8%)         1333 Mhz     2.0%
C3 mwait          2.8ms (74.2%)         1199 Mhz    79.7%

Wakeups-from-idle per second : 511.8    interval: 15.0s
no ACPI power usage estimate available

Top causes for wakeups:
  31.0% (289.2)   [ahci] <interrupt>
  20.9% (195.5)   linux_64_server
   9.6% ( 89.7)   [kernel scheduler] Load balancing tick
   7.6% ( 71.0)   [Rescheduling interrupts] <kernel IPI>
   5.2% ( 48.2)   [kernel core] mod_timer (cfq_idle_slice_timer)
   4.6% ( 43.1)   firefox
   4.6% ( 42.9)   java
   4.0% ( 37.1)   [kernel core] hrtimer_start (tick_sched_timer)
   3.6% ( 33.7)   [iwlagn] <interrupt>
   1.9% ( 17.8)   kworker/0:0
   1.9% ( 17.3)   kworker/0:1
   1.3% ( 12.1)   evince
   1.2% ( 10.8)   [nvidia, hda_intel] <interrupt>
   0.8% (  7.5)   thunderbird-bin
   0.3% (  2.8)   nautilus
   0.3% (  2.5)   [Function call interrupts] <kernel IPI>
   0.2% (  2.0)   multiload-apple
   0.2% (  2.0)   [kernel core] mod_timer (iwl_bg_watchdog)
   0.1% (  1.4)   gnome-terminal
   0.1% (  1.0)   [kernel core] mod_timer (nv_kern_rc_timer)
   0.1% (  1.0)   [kernel core] mod_timer (tpt_trig_timer)
   0.1% (  1.0)   cpufreq-applet
   0.1% (  1.0)   gvfs-afc-volume
   0.0% (  0.5)   gnome-dvb-daemo
   0.0% (  0.5)   top
   0.0% (  0.3)   gnome-screensav
   0.0% (  0.3)   gnome-panel
   0.0% (  0.2)   NetworkManager
   0.0% (  0.2)   hald-addon-acpi
   0.0% (  0.2)   sendmail
   0.0% (  0.1)   irqbalance
   0.0% (  0.1)   ssh-agent
   0.0% (  0.1)   khugepaged
   0.0% (  0.1)   gnome-power-man
--------------------------------------------

$ modinfo sony-laptop
filename:       /lib/modules/2.6.40.3-0.fc15.x86_64/updates/sony-laptop.ko
version:        0.9np8pre3
license:        GPL
description:    Sony laptop extras driver (SPIC and SNC ACPI device)
author:         Stelian Pop, Mattia Dongili
srcversion:     21EDB2749518F48870F9250
alias:          acpi*:SNY6001:*
alias:          acpi*:SNY5001:*
depends:        rfkill
vermagic:       2.6.40.3-0.fc15.x86_64 SMP mod_unload
parm: debug:set this to 1 (and RTFM) if you want to help the development of this driver (int) parm: no_spic:set this if you don't want to enable the SPIC device (int) parm: compat:set this if you want to enable backward compatibility mode (int) parm: mask:set this to the mask of event you want to enable (see doc) (ulong) parm: camera:set this to 1 to enable Motion Eye camera controls (only use it if you have a C1VE or C1VN model) (int) parm: minor:minor number of the misc device for the SPIC compatibility code, default is -1 (automatic) (int) parm: kbd_backlight:set this to 0 to disable keyboard backlight, 1 to enable it (default: 0) (int) parm: kbd_backlight_timeout:set this to 0 to set the default 10 seconds timeout, 1 for 30 seconds, 2 for 60 seconds and 3 to disable timeout (default: 0) (int) parm: force_shock_notifications:set this to 1 to force the generation of shock protection events, even though the notebook do not support head unloading for the installed drive drive (int) parm: speed_stamina:Set this to 1 to enable SPEED mode on module load (EXPERIMENTAL) (int)
[royer@localhost sony-laptop-zseries-0.9np8pre3]$
-------------------------------------

$dmesg
[41746.705873] sony_laptop: Sony Notebook Control Driver v0.9np8pre3
[41746.707999] sony_laptop: Determined GFX switch ACPI path as \_SB.PCI0.P0P2.DGPU._DSM.
[41746.711967] sony_laptop: Speed/stamina switch: speed.
[41746.733150] sony_laptop: method: name: _INI, args 0
[41746.733157] sony_laptop: method: name: PWAK, args 0
[41746.733161] sony_laptop: method: name: GBRT, args 0
[41746.733165] sony_laptop: method: name: SBRT, args 1
[41746.733169] sony_laptop: method: name: EAWK, args 1
[41746.733174] sony_laptop: method: name: SN00, args 1
[41746.733178] sony_laptop: method: name: SN01, args 0
[41746.733182] sony_laptop: method: name: SN02, args 1
[41746.733186] sony_laptop: method: name: SN03, args 1
[41746.733190] sony_laptop: method: name: SN04, args 0
[41746.733194] sony_laptop: method: name: SN05, args 1
[41746.733198] sony_laptop: method: name: SN06, args 1
[41746.733202] sony_laptop: method: name: SN07, args 1
[41746.733205] sony_laptop: method: name: SNIN, args 0
[41746.733209] sony_laptop: method: name: SNCF, args 2
[41746.733213] sony_laptop: method: name: SNNE, args 1
[41746.733217] sony_laptop: method: name: F100, args 0
[41746.733221] sony_laptop: method: name: F101, args 0
[41746.733225] sony_laptop: method: name: F103, args 0
[41746.733228] sony_laptop: method: name: F105, args 0
[41746.733232] sony_laptop: method: name: F114, args 0
[41746.733236] sony_laptop: method: name: F119, args 0
[41746.733240] sony_laptop: method: name: F11D, args 0
[41746.733244] sony_laptop: method: name: F121, args 0
[41746.733248] sony_laptop: method: name: F122, args 0
[41746.733251] sony_laptop: method: name: F126, args 0
[41746.733255] sony_laptop: method: name: F128, args 0
[41746.733260] sony_laptop: method: name: F135, args 0
[41746.733263] sony_laptop: method: name: UDWW, args 0
[41746.733267] sony_laptop: method: name: F136, args 0
[41746.733271] sony_laptop: method: name: F137, args 0
[41746.733275] sony_laptop: method: name: F13A, args 0
[41746.733279] sony_laptop: method: name: HSC0, args 0
[41746.733283] sony_laptop: method: name: HSC1, args 0
[41746.733287] sony_laptop: method: name: HSC2, args 0
[41746.733291] sony_laptop: method: name: HSC3, args 1
[41746.733295] sony_laptop: method: name: HSC4, args 1
[41746.733298] sony_laptop: method: name: HOMP, args 0
[41746.733302] sony_laptop: method: name: HSC5, args 0
[41746.733306] sony_laptop: method: name: HSC6, args 0
[41746.733310] sony_laptop: method: name: HSC7, args 0
[41746.733314] sony_laptop: method: name: CPTP, args 0
[41746.733321] sony_laptop: Doing SNC setup
[41746.734413] sony_laptop: found Vaio model ID: 17203
[41746.734916] sony_laptop: caching handle 0x0100 (offset: 0x00)
[41746.735152] sony_laptop: caching handle 0x0114 (offset: 0x01)
[41746.735337] sony_laptop: caching handle 0x0126 (offset: 0x02)
[41746.735518] sony_laptop: caching handle 0x0105 (offset: 0x03)
[41746.735699] sony_laptop: caching handle 0x0000 (offset: 0x04)
[41746.735879] sony_laptop: caching handle 0x0000 (offset: 0x05)
[41746.736126] sony_laptop: caching handle 0x0101 (offset: 0x06)
[41746.736310] sony_laptop: caching handle 0x0000 (offset: 0x07)
[41746.736491] sony_laptop: caching handle 0x0000 (offset: 0x08)
[41746.736672] sony_laptop: caching handle 0x0136 (offset: 0x09)
[41746.736852] sony_laptop: caching handle 0x0122 (offset: 0x0a)
[41746.737089] sony_laptop: caching handle 0x011d (offset: 0x0b)
[41746.737275] sony_laptop: caching handle 0x0135 (offset: 0x0c)
[41746.737455] sony_laptop: caching handle 0x0137 (offset: 0x0d)
[41746.737636] sony_laptop: caching handle 0x0000 (offset: 0x0e)
[41746.737816] sony_laptop: caching handle 0x0103 (offset: 0x0f)
[41746.737824] sony_laptop: looking at handle 0x0100
[41746.737827] sony_laptop: found handle 0x0100 (offset: 0x00)
[41746.739973] sony_laptop: called SN07 with 0x0000 (result: 0x0000)
[41746.739978] sony_laptop: handle 0x0100 setup completed
[41746.739981] sony_laptop: looking at handle 0x0114
[41746.739984] sony_laptop: looking at handle 0x0126
[41746.739988] sony_laptop: found handle 0x0126 (offset: 0x02)
[41746.744357] sony_laptop: called SN06 with 0x0002 (32 bytes read)
[41746.744362] sony_laptop: one optical device found, connected to: 8086:282a
[41746.744369] sony_laptop: handle 0x0126 setup completed
[41746.744372] sony_laptop: looking at handle 0x0105
[41746.744376] sony_laptop: handle 0x0105 setup completed
[41746.744379] sony_laptop: looking at handle 0x0101
[41746.744382] sony_laptop: found handle 0x0101 (offset: 0x06)
[41746.745967] sony_laptop: called SN07 with 0x0006 (result: 0x0006)
[41746.745972] sony_laptop: handle 0x0101 setup completed
[41746.745975] sony_laptop: looking at handle 0x0136
[41746.745982] sony_laptop: handle 0x0136 setup completed
[41746.745985] sony_laptop: looking at handle 0x0122
[41746.745988] sony_laptop: found handle 0x0122 (offset: 0x0a)
[41746.746319] sony_laptop: called SN07 with 0x000a (result: 0x0003)
[41746.746324] sony_laptop: found handle 0x0122 (offset: 0x0a)
[41746.747953] sony_laptop: called SN07 with 0x010a (result: 0x0100)
[41746.747961] sony_laptop: handle 0x0122 setup completed
[41746.747964] sony_laptop: looking at handle 0x011d
[41746.747967] sony_laptop: looking at handle 0x0135
[41746.747971] sony_laptop: found handle 0x0135 (offset: 0x0c)
[41746.752235] sony_laptop: called SN06 with 0x000c (8 bytes read)
[41746.752241] sony_laptop: Radio devices, looking at 0x00
[41746.752248] sony_laptop: found handle 0x0135 (offset: 0x0c)
[41746.758008] sony_laptop: called SN07 with 0x020c (result: 0x0203)
[41746.758014] sony_laptop: found handle 0x0135 (offset: 0x0c)
[41746.766026] sony_laptop: called SN07 with 0x030c (result: 0x0303)
[41746.766132] sony_laptop: found handle 0x0135 (offset: 0x0c)
[41746.771972] sony_laptop: called SN07 with 0x020c (result: 0x0203)
[41746.771978] sony_laptop: found handle 0x0135 (offset: 0x0c)
[41746.780033] sony_laptop: called SN07 with 0x030c (result: 0x0303)
[41746.780075] sony_laptop: Radio devices, looking at 0x10
[41746.780083] sony_laptop: found handle 0x0135 (offset: 0x0c)
[41746.785965] sony_laptop: called SN07 with 0x020c (result: 0x0203)
[41746.785971] sony_laptop: found handle 0x0135 (offset: 0x0c)
[41746.791959] sony_laptop: called SN07 with 0x050c (result: 0x0503)
[41746.792075] sony_laptop: found handle 0x0135 (offset: 0x0c)
[41746.797958] sony_laptop: called SN07 with 0x020c (result: 0x0203)
[41746.797964] sony_laptop: found handle 0x0135 (offset: 0x0c)
[41746.804945] sony_laptop: called SN07 with 0x050c (result: 0x0503)
[41746.805029] sony_laptop: Radio devices, looking at 0x70
[41746.805035] sony_laptop: handle 0x0135 setup completed
[41746.805040] sony_laptop: looking at handle 0x0137
[41746.805044] sony_laptop: found handle 0x0137 (offset: 0x0d)
[41746.805806] sony_laptop: called SN07 with 0x0b0d (result: 0x0b03)
[41746.805818] sony_laptop: found handle 0x0137 (offset: 0x0d)
[41746.807969] sony_laptop: called SN07 with 0x0c0d (result: 0x0c0d)
[41746.807974] sony_laptop: found handle 0x0137 (offset: 0x0d)
[41746.809981] sony_laptop: called SN07 with 0x0d0d (result: 0x0d0d)
[41746.809986] sony_laptop: found handle 0x0137 (offset: 0x0d)
[41746.811967] sony_laptop: called SN07 with 0x0e0d (result: 0x0e0d)
[41746.811972] sony_laptop: found handle 0x0137 (offset: 0x0d)
[41746.812627] sony_laptop: called SN07 with 0x0b0d (result: 0x0b03)
[41746.812632] sony_laptop: found handle 0x0137 (offset: 0x0d)
[41746.813987] sony_laptop: called SN07 with 0x80040d (result: 0x800001)
[41746.813992] sony_laptop: found handle 0x0137 (offset: 0x0d)
[41746.814558] sony_laptop: called SN07 with 0x090d (result: 0x090d)
[41746.814563] sony_laptop: found handle 0x0137 (offset: 0x0d)
[41746.815656] sony_laptop: called SN07 with 0x80050d (result: 0x800501)
[41746.815662] sony_laptop: found handle 0x0137 (offset: 0x0d)
[41746.818131] sony_laptop: called SN06 with 0x000d (25 bytes read)
[41746.818136] sony_laptop: found handle 0x0137 (offset: 0x0d)
[41746.819325] sony_laptop: called SN07 with 0x8a040d (result: 0x8a4001)
[41746.819331] sony_laptop: found ALS model number 4 rev. 0 (TAOS TSL2560)
[41746.819335] sony_laptop: found handle 0x0137 (offset: 0x0d)
[41746.820657] sony_laptop: called SN06 with 0xa2070d (1 bytes read)
[41746.820662] sony_laptop: found handle 0x0137 (offset: 0x0d)
[41746.821964] sony_laptop: called SN06 with 0xa4070d (1 bytes read)
[41746.821969] sony_laptop: found handle 0x0137 (offset: 0x0d)
[41746.823021] sony_laptop: called SN07 with 0x1281050d (result: 0x12810501)
[41746.823027] sony_laptop: found handle 0x0137 (offset: 0x0d)
[41746.824089] sony_laptop: called SN07 with 0x1486050d (result: 0x14860501)
[41746.824104] sony_laptop: handle 0x0137 setup completed
[41746.824107] sony_laptop: looking at handle 0x0103
[41746.824111] sony_laptop: found handle 0x0114 (offset: 0x01)
[41746.825929] sony_laptop: called SN07 with 0x0001 (result: 0x0001)
[41746.825933] sony_laptop: handle 0x114 returned: 1
[41746.825937] sony_laptop: handle 0x0139 not found
[41746.825940] sony_laptop: handle 0x0139 not found
[41746.826093] input: Sony Vaio Keys as /devices/LNXSYSTM:00/device:00/PNP0A08:00/device:0b/SNY5001:00/input/input15
[41746.826325] input: Sony Vaio Jogdial as /devices/virtual/input/input16
[41746.826500] sony_laptop: brightness ignored, must be controlled by ACPI video driver
[41960.181705] sony_laptop: found handle 0x0137 (offset: 0x0d)
[41960.182072] sony_laptop: called SN07 with 0x020d (result: 0x02ae)
[41960.182131] sony_laptop: found handle 0x0137 (offset: 0x0d)
[41960.182362] sony_laptop: called SN07 with 0x0a0d (result: 0x0a00)
[41960.182377] sony_laptop: found handle 0x0137 (offset: 0x0d)
[41960.183115] sony_laptop: called SN07 with 0x80040d (result: 0x800001)
[41960.183133] sony_laptop: found handle 0x0136 (offset: 0x09)
[41960.184859] sony_laptop: called SN07 with 0x0209 (result: 0x0264)
[41960.185018] sony_laptop: found handle 0x0136 (offset: 0x09)
[41960.186889] sony_laptop: called SN07 with 0x0009 (result: 0x0000)
[41960.187290] sony_laptop: found handle 0x0126 (offset: 0x02)
[41960.192904] sony_laptop: called SN07 with 0x0102 (result: 0x0001)
[41960.193052] sony_laptop: found handle 0x0122 (offset: 0x0a)
[41960.194834] sony_laptop: called SN07 with 0x010a (result: 0x0100)
[41960.195000] sony_laptop: found handle 0x0105 (offset: 0x03)
[41960.196839] sony_laptop: called SN07 with 0x0003 (result: 0x0000)
[43528.490601] sony_laptop: looking at handle 0x0100
[43528.490604] sony_laptop: looking at handle 0x0114
[43528.490605] sony_laptop: looking at handle 0x0126
[43528.490608] sony_laptop: handle 0x0126 deconfigured
[43528.490609] sony_laptop: looking at handle 0x0105
[43528.490611] sony_laptop: handle 0x0105 deconfigured
[43528.490612] sony_laptop: looking at handle 0x0101
[43528.490613] sony_laptop: looking at handle 0x0136
[43528.490616] sony_laptop: handle 0x0136 deconfigured
[43528.490617] sony_laptop: looking at handle 0x0122
[43528.490619] sony_laptop: handle 0x0122 deconfigured
[43528.490621] sony_laptop: looking at handle 0x011d
[43528.490622] sony_laptop: looking at handle 0x0135
[43528.490695] sony_laptop: handle 0x0135 deconfigured
[43528.490697] sony_laptop: looking at handle 0x0137
[43528.490700] sony_laptop: found handle 0x0137 (offset: 0x0d)
[43528.493414] sony_laptop: called SN07 with 0x10c0d (result: 0x10c0d)
[43528.493418] sony_laptop: found handle 0x0137 (offset: 0x0d)
[43528.496288] sony_laptop: called SN07 with 0x0e0d (result: 0x0e0d)
[43528.496299] sony_laptop: found handle 0x0137 (offset: 0x0d)
[43528.497043] sony_laptop: called SN07 with 0x486050d (result: 0x4860501)
[43528.497046] sony_laptop: handle 0x0137 deconfigured
[43528.497047] sony_laptop: looking at handle 0x0103
[43528.540618] sony_laptop: Sony Notebook Control Driver removed.
[43528.545011] sony_laptop: Sony Notebook Control Driver v0.9np8
[43528.546545] sony_laptop: Determined GFX switch ACPI path as \_SB.PCI0.P0P2.DGPU._DSM.
[43528.550496] sony_laptop: Speed/stamina switch: speed.
[43528.570645] sony_laptop: method: name: _INI, args 0
[43528.570649] sony_laptop: method: name: PWAK, args 0
[43528.570651] sony_laptop: method: name: GBRT, args 0
[43528.570653] sony_laptop: method: name: SBRT, args 1
[43528.570655] sony_laptop: method: name: EAWK, args 1
[43528.570657] sony_laptop: method: name: SN00, args 1
[43528.570659] sony_laptop: method: name: SN01, args 0
[43528.570661] sony_laptop: method: name: SN02, args 1
[43528.570662] sony_laptop: method: name: SN03, args 1
[43528.570664] sony_laptop: method: name: SN04, args 0
[43528.570666] sony_laptop: method: name: SN05, args 1
[43528.570668] sony_laptop: method: name: SN06, args 1
[43528.570669] sony_laptop: method: name: SN07, args 1
[43528.570671] sony_laptop: method: name: SNIN, args 0
[43528.570673] sony_laptop: method: name: SNCF, args 2
[43528.570674] sony_laptop: method: name: SNNE, args 1
[43528.570676] sony_laptop: method: name: F100, args 0
[43528.570678] sony_laptop: method: name: F101, args 0
[43528.570679] sony_laptop: method: name: F103, args 0
[43528.570681] sony_laptop: method: name: F105, args 0
[43528.570682] sony_laptop: method: name: F114, args 0
[43528.570684] sony_laptop: method: name: F119, args 0
[43528.570686] sony_laptop: method: name: F11D, args 0
[43528.570688] sony_laptop: method: name: F121, args 0
[43528.570689] sony_laptop: method: name: F122, args 0
[43528.570691] sony_laptop: method: name: F126, args 0
[43528.570692] sony_laptop: method: name: F128, args 0
[43528.570695] sony_laptop: method: name: F135, args 0
[43528.570696] sony_laptop: method: name: UDWW, args 0
[43528.570698] sony_laptop: method: name: F136, args 0
[43528.570700] sony_laptop: method: name: F137, args 0
[43528.570701] sony_laptop: method: name: F13A, args 0
[43528.570703] sony_laptop: method: name: HSC0, args 0
[43528.570705] sony_laptop: method: name: HSC1, args 0
[43528.570707] sony_laptop: method: name: HSC2, args 0
[43528.570708] sony_laptop: method: name: HSC3, args 1
[43528.570710] sony_laptop: method: name: HSC4, args 1
[43528.570712] sony_laptop: method: name: HOMP, args 0
[43528.570714] sony_laptop: method: name: HSC5, args 0
[43528.570715] sony_laptop: method: name: HSC6, args 0
[43528.570717] sony_laptop: method: name: HSC7, args 0
[43528.570719] sony_laptop: method: name: CPTP, args 0
[43528.570722] sony_laptop: Doing SNC setup
[43528.571128] sony_laptop: found Vaio model ID: 17203
[43528.571287] sony_laptop: caching handle 0x0100 (offset: 0x00)
[43528.571365] sony_laptop: caching handle 0x0114 (offset: 0x01)
[43528.571446] sony_laptop: caching handle 0x0126 (offset: 0x02)
[43528.571541] sony_laptop: caching handle 0x0105 (offset: 0x03)
[43528.571623] sony_laptop: caching handle 0x0000 (offset: 0x04)
[43528.571703] sony_laptop: caching handle 0x0000 (offset: 0x05)
[43528.571783] sony_laptop: caching handle 0x0101 (offset: 0x06)
[43528.571861] sony_laptop: caching handle 0x0000 (offset: 0x07)
[43528.571941] sony_laptop: caching handle 0x0000 (offset: 0x08)
[43528.572020] sony_laptop: caching handle 0x0136 (offset: 0x09)
[43528.572100] sony_laptop: caching handle 0x0122 (offset: 0x0a)
[43528.572180] sony_laptop: caching handle 0x011d (offset: 0x0b)
[43528.572260] sony_laptop: caching handle 0x0135 (offset: 0x0c)
[43528.572340] sony_laptop: caching handle 0x0137 (offset: 0x0d)
[43528.572419] sony_laptop: caching handle 0x0000 (offset: 0x0e)
[43528.572572] sony_laptop: caching handle 0x0103 (offset: 0x0f)
[43528.572581] sony_laptop: looking at handle 0x0100
[43528.572585] sony_laptop: found handle 0x0100 (offset: 0x00)
[43528.574517] sony_laptop: called SN07 with 0x0000 (result: 0x0000)
[43528.574519] sony_laptop: handle 0x0100 setup completed
[43528.574521] sony_laptop: looking at handle 0x0114
[43528.574522] sony_laptop: looking at handle 0x0126
[43528.574524] sony_laptop: found handle 0x0126 (offset: 0x02)
[43528.577745] sony_laptop: called SN06 with 0x0002 (32 bytes read)
[43528.577750] sony_laptop: one optical device found, connected to: 8086:282a
[43528.577757] sony_laptop: handle 0x0126 setup completed
[43528.577760] sony_laptop: looking at handle 0x0105
[43528.577764] sony_laptop: handle 0x0105 setup completed
[43528.577767] sony_laptop: looking at handle 0x0101
[43528.577770] sony_laptop: found handle 0x0101 (offset: 0x06)
[43528.579534] sony_laptop: called SN07 with 0x0006 (result: 0x0006)
[43528.579539] sony_laptop: handle 0x0101 setup completed
[43528.579542] sony_laptop: looking at handle 0x0136
[43528.579549] sony_laptop: handle 0x0136 setup completed
[43528.579552] sony_laptop: looking at handle 0x0122
[43528.579556] sony_laptop: found handle 0x0122 (offset: 0x0a)
[43528.579743] sony_laptop: called SN07 with 0x000a (result: 0x0003)
[43528.579745] sony_laptop: found handle 0x0122 (offset: 0x0a)
[43528.581537] sony_laptop: called SN07 with 0x010a (result: 0x0100)
[43528.581541] sony_laptop: handle 0x0122 setup completed
[43528.581542] sony_laptop: looking at handle 0x011d
[43528.581543] sony_laptop: looking at handle 0x0135
[43528.581545] sony_laptop: found handle 0x0135 (offset: 0x0c)
[43528.585722] sony_laptop: called SN06 with 0x000c (8 bytes read)
[43528.585724] sony_laptop: Radio devices, looking at 0x00
[43528.585728] sony_laptop: found handle 0x0135 (offset: 0x0c)
[43528.591542] sony_laptop: called SN07 with 0x020c (result: 0x0203)
[43528.591548] sony_laptop: found handle 0x0135 (offset: 0x0c)
[43528.599583] sony_laptop: called SN07 with 0x030c (result: 0x0303)
[43528.599649] sony_laptop: found handle 0x0135 (offset: 0x0c)
[43528.605532] sony_laptop: called SN07 with 0x020c (result: 0x0203)
[43528.605538] sony_laptop: found handle 0x0135 (offset: 0x0c)
[43528.613584] sony_laptop: called SN07 with 0x030c (result: 0x0303)
[43528.613638] sony_laptop: Radio devices, looking at 0x10
[43528.613644] sony_laptop: found handle 0x0135 (offset: 0x0c)
[43528.619581] sony_laptop: called SN07 with 0x020c (result: 0x0203)
[43528.619588] sony_laptop: found handle 0x0135 (offset: 0x0c)
[43528.625516] sony_laptop: called SN07 with 0x050c (result: 0x0503)
[43528.625608] sony_laptop: found handle 0x0135 (offset: 0x0c)
[43528.631532] sony_laptop: called SN07 with 0x020c (result: 0x0203)
[43528.631538] sony_laptop: found handle 0x0135 (offset: 0x0c)
[43528.638582] sony_laptop: called SN07 with 0x050c (result: 0x0503)
[43528.638635] sony_laptop: Radio devices, looking at 0x70
[43528.638640] sony_laptop: handle 0x0135 setup completed
[43528.638644] sony_laptop: looking at handle 0x0137
[43528.638649] sony_laptop: found handle 0x0137 (offset: 0x0d)
[43528.639353] sony_laptop: called SN07 with 0x0b0d (result: 0x0b03)
[43528.639362] sony_laptop: found handle 0x0137 (offset: 0x0d)
[43528.641525] sony_laptop: called SN07 with 0x0c0d (result: 0x0c0d)
[43528.641530] sony_laptop: found handle 0x0137 (offset: 0x0d)
[43528.643541] sony_laptop: called SN07 with 0x0d0d (result: 0x0d0d)
[43528.643546] sony_laptop: found handle 0x0137 (offset: 0x0d)
[43528.645533] sony_laptop: called SN07 with 0x0e0d (result: 0x0e0d)
[43528.645538] sony_laptop: found handle 0x0137 (offset: 0x0d)
[43528.646197] sony_laptop: called SN07 with 0x0b0d (result: 0x0b03)
[43528.646202] sony_laptop: found handle 0x0137 (offset: 0x0d)
[43528.647546] sony_laptop: called SN07 with 0x80040d (result: 0x800001)
[43528.647551] sony_laptop: found handle 0x0137 (offset: 0x0d)
[43528.648116] sony_laptop: called SN07 with 0x090d (result: 0x090d)
[43528.648121] sony_laptop: found handle 0x0137 (offset: 0x0d)
[43528.649242] sony_laptop: called SN07 with 0x80050d (result: 0x800501)
[43528.649248] sony_laptop: found handle 0x0137 (offset: 0x0d)
[43528.652005] sony_laptop: called SN06 with 0x000d (25 bytes read)
[43528.652011] sony_laptop: found handle 0x0137 (offset: 0x0d)
[43528.653256] sony_laptop: called SN07 with 0x8a040d (result: 0x8a4001)
[43528.653262] sony_laptop: found ALS model number 4 rev. 0 (TAOS TSL2560)
[43528.653266] sony_laptop: found handle 0x0137 (offset: 0x0d)
[43528.654594] sony_laptop: called SN06 with 0xa2070d (1 bytes read)
[43528.654599] sony_laptop: found handle 0x0137 (offset: 0x0d)
[43528.655781] sony_laptop: called SN06 with 0xa4070d (1 bytes read)
[43528.655786] sony_laptop: found handle 0x0137 (offset: 0x0d)
[43528.656847] sony_laptop: called SN07 with 0x1281050d (result: 0x12810501)
[43528.656853] sony_laptop: found handle 0x0137 (offset: 0x0d)
[43528.657921] sony_laptop: called SN07 with 0x1486050d (result: 0x14860501)
[43528.657939] sony_laptop: handle 0x0137 setup completed
[43528.657942] sony_laptop: looking at handle 0x0103
[43528.657945] sony_laptop: found handle 0x0114 (offset: 0x01)
[43528.659507] sony_laptop: called SN07 with 0x0001 (result: 0x0001)
[43528.659512] sony_laptop: handle 0x114 returned: 1
[43528.659515] sony_laptop: handle 0x0139 not found
[43528.659518] sony_laptop: handle 0x0139 not found
[43528.659634] input: Sony Vaio Keys as /devices/LNXSYSTM:00/device:00/PNP0A08:00/device:0b/SNY5001:00/input/input17
[43528.659807] input: Sony Vaio Jogdial as /devices/virtual/input/input18
[43528.659915] sony_laptop: brightness ignored, must be controlled by ACPI video driver


-----------------------------------------
$lsmod
Module                  Size  Used by
cpufreq_stats           3960  0
tun                    14179  0
sony_laptop            56271  0
tcp_lp                  2111  0
fuse                   62381  3
rfcomm                 59295  4
rmd160                  7872  0
bnep                   14635  2
crypto_null             2846  0
camellia               18207  0
lzo                     1501  0
cast6                   8709  0
cast5                  14720  0
deflate                 1953  0
zlib_deflate           18680  1 deflate
cts                     3777  0
gcm                    12085  0
ccm                     7512  0
serpent                19581  0
blowfish                7826  0
twofish_generic         6243  0
twofish_x86_64          5231  0
twofish_common         13166  2 twofish_generic,twofish_x86_64
xcbc                    2599  0
sha256_generic          9839  0
sha512_generic          4740  0
des_generic            16519  0
ah6                     5424  0
ah4                     4912  0
esp6                    5308  0
esp4                    5543  0
xfrm4_mode_beet         1979  0
xfrm4_tunnel            1923  0
tunnel4                 2579  1 xfrm4_tunnel
xfrm4_mode_tunnel       1847  0
xfrm4_mode_transport     1439  0
xfrm6_mode_transport     1487  0
xfrm6_mode_ro           1276  0
xfrm6_mode_beet         1882  0
xfrm6_mode_tunnel       1948  0
ipcomp                  1990  0
ipcomp6                 2023  0
xfrm_ipcomp             4014  2 ipcomp,ipcomp6
xfrm6_tunnel            3675  1 ipcomp6
tunnel6                 2430  1 xfrm6_tunnel
af_key                 26041  0
vboxpci                13736  0
vboxnetadp              5833  0
vboxnetflt             15573  0
vboxdrv              1808836  3 vboxpci,vboxnetadp,vboxnetflt
sunrpc                200079  1
cpufreq_ondemand        5934  4
acpi_cpufreq            9536  1
freq_table              5038  3 cpufreq_stats,cpufreq_ondemand,acpi_cpufreq
mperf                   1449  1 acpi_cpufreq
nf_conntrack_ipv4       8358  2
nf_defrag_ipv4          1513  1 nf_conntrack_ipv4
ip6t_REJECT             3992  2
nf_conntrack_ipv6       7730  2
nf_defrag_ipv6          9083  1 nf_conntrack_ipv6
xt_state                1306  4
nf_conntrack           67613  3 nf_conntrack_ipv4,nf_conntrack_ipv6,xt_state
ip6table_filter         1655  1
ip6_tables             16908  1 ip6table_filter
ipv6 284570 78 ah6,esp6,xfrm6_mode_beet,xfrm6_mode_tunnel,ipcomp6,xfrm6_tunnel,tunnel6,ip6t_REJECT,nf_conntrack_ipv6,nf_defrag_ipv6
uinput                  7346  0
uvcvideo               57089  0
btusb                  14828  1
videodev               72104  1 uvcvideo
media                  11611  2 uvcvideo,videodev
bluetooth             191587  23 rfcomm,bnep,btusb
v4l2_compat_ioctl32     7377  1 videodev
snd_hda_codec_hdmi     22499  4
nvidia              11694129  33
snd_hda_codec_realtek   322029  1
arc4                    1417  2
snd_hda_intel          23896  2
snd_hda_codec 82508 3 snd_hda_codec_hdmi,snd_hda_codec_realtek,snd_hda_intel
snd_hwdep               6328  1 snd_hda_codec
snd_seq                52322  0
snd_seq_device          5941  1 snd_seq
microcode              18587  0
intel_ips              11358  0
snd_pcm 78424 3 snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec
iTCO_wdt               13000  0
iTCO_vendor_support     2578  1 iTCO_wdt
i2c_i801                9237  0
snd_timer              19372  2 snd_seq,snd_pcm
snd 63380 13 snd_hda_codec_hdmi,snd_hda_codec_realtek,snd_hda_intel,snd_hda_codec,snd_hwdep,snd_seq,snd_seq_device,snd_pcm,snd_timer
joydev                  9615  0
iwlagn                322267  0
mac80211              247332  1 iwlagn
i2c_core               25712  3 videodev,nvidia,i2c_i801
e1000e                170698  0
soundcore               6267  1 snd
cfg80211              148129  2 iwlagn,mac80211
snd_page_alloc          7343  2 snd_hda_intel,snd_pcm
rfkill                 16436  4 sony_laptop,bluetooth,cfg80211
raid0                   7442  1
sdhci_pci               8849  0
sdhci                  22768  1 sdhci_pci
mmc_core               76665  1 sdhci
mxm_wmi                 1727  0
wmi                     9033  1 mxm_wmi
video                  12340  0

On 09/02/2011 06:44 PM, Norbert Preining wrote:
On Fr, 02 Sep 2011, Leonardo Rodriguez wrote:
anyone?
Apparently not.

What do you expect, that we solve all your problems?

On 08/29/2011 01:41 PM, Leonardo Rodriguez wrote:
watts idle. On the 2.6.40 kernel it displays 0Wh (Anyone know how to fix
this?).
You don't say how you checked that, and it is probably that your
user space is to old. Furthermore, I assume that 2.6.40 means
actually 3.0.0, right?

5) Running the Intel card (switch set to Stamina) on 2.6.40 shows both
VGA cards running (this is the main issue). The 2.6.40 kernel displays
0Wh, but I can tell its consuming more than 17.4 watts by manually
calculating it.
Not necessarily. I see also both cards, but still can run down to
below 10W.

I would like to run with the Intel card only, so the battery lasts
longer (should idle at around 11 watts I believe).
What about checking the usual suspects first?
What is your CPU freq, do you have a proper governor running?
Do you run powertop and check who is eating the watts?

was download the 0.9np8pre3 module and as regular user I ran "sudo make
install". Is that all there is to it?
I guess you have to run make first, before running make install, at least
this is what the makefile shows.

Running $modinfo sony-laptop shows the proper version "0.9np8pre3" (see
below). Does that mean the module is installed and running?
Not necessarily. What does the output of lsmod say?
What does the output of dmesg say? Do you see something like that:
[   40.210665] sony_laptop: Sony Programmable IO Control Driver v0.9np8
[   40.217265] sony_laptop: detected Type3 model
[   40.242835] sony_laptop: device allocated minor is 58
[   40.245483] sony_laptop: acpi_callreadfunc failed
[   40.246975] sony_laptop: Determined GFX switch ACPI path as \_SB.PCI0.OVGA._DSM.
[   40.325281] sony_laptop: Speed/stamina switch: stamina.
[   40.391573] sony_laptop: Sony Notebook Control Driver v0.9np8
[   40.401745] sony_laptop: found Vaio model ID: 19763

How do I know the module is actually running? How do I configure the
module parameters for keyboard backlight etc? I would like to have the
keyboard backlight working, and disable bluetooth.
/sys/devices/platform/sony-laptop/ should have the proper files if you
are running the right module. I have here:
$ ls /sys/devices/platform/sony-laptop
battery_care_limiter  lid_resume_control  speed_stamina     touchpad
bluetoothpower	      modalias		  subsystem@	    uevent
driver@		      odd_power		  thermal_control   wwanpower
fanspeed	      power/		  thermal_profiles

Best wishes

Norbert
------------------------------------------------------------------------
Norbert Preining            preining@{jaist.ac.jp, logic.at, debian.org}
JAIST, Japan                                 TeX Live&  Debian Developer
DSA: 0x09C5B094   fp: 14DF 2E6C 0307 BE6D AD76  A9C0 D2BF 4AA3 09C5 B094
------------------------------------------------------------------------
PITLOCHRY (n.)
The background gurgling noise heard in Wimby Bars caused by people
trying to get the last bubbles out of their milkshakes by slurping
loudly through their straws.
			--- Douglas Adams, The Meaning of Liff




Follow ups

References