HAL

Comment 15 for bug 277589

Revision history for this message
yleetiny (yleetiny) wrote : Re: [Bug 277589] Re: sony brighness on a geforce series older than 8 (nvclock works fine)

Sorry,

1rstly, For the backup, and the cp I think the paths are all mixed up,
since i'm using a 64bits version.

to find the files : find /usr -iname
"hal-system-lcd-*et-brightness-linux", backup, and replace them with my
files.

2ndly, I also mess up with the name of your sony-laptop model, you need
to
change the name "VGN-FE31Z" into "VGN-FE31M" in
/usr/share/hal/fdi/information/10freedesktop/10-sony-laptop-panel-mgmt-policy.fdi

Then reboot,
PS :
If it still doesn't work, to verify if the things are ok,
 sudo smartdimmer -s 5
 # to change brightness, verify that smartdimmer works
 lshal | grep -i "sony-nvidia"
 # hal have now the write method
if both of those things are ok, then that means that the 2 others files
(*set* and *get* ) are wrongly installed

On lun, 2008-10-13 at 18:15 +0000, benste wrote:
> I'm sorry, but it doesn't work for me:
> 1st
>
> sudo mv /usr/lib/hal/scripts/hal-system-lcd-get-brightness-linux /usr/lib/hal/scripts/hal-system-lcd-get-brightness-linux.back
> sudo mv /usr/lib/hal/scripts/hal-system-lcd-set-brightness-linux /usr/lib/hal/scripts/hal-system-lcd-set-brightness-linux.back
>
> resulted both in "file not found"
> but it isn't necesarry because it's just a backup or?
>
>
> 2nd: smartdimmer and lshal:
> benste@vaiofe31m:~$ sudo apt-get install smartdimmer
> [sudo] password for benste:
> Paketlisten werden gelesen... Fertig
> Abhängigkeitsbaum wird aufgebaut
> Lese Status-Informationen ein... Fertig
> smartdimmer ist schon die neueste Version.
> smartdimmer wurde als manuell installiert festgelegt.
> Die folgenden Pakete wurden automatisch installiert und werden nicht länger benötigt:
> libgtkhtml3.16-cil
> Verwenden Sie »apt-get autoremove«, um sie zu entfernen.
> 0 aktualisiert, 0 neu installiert, 0 zu entfernen und 0 nicht aktualisiert.
> benste@vaiofe31m:~$ apt-get autoremove
> E: Konnte Lockdatei /var/lib/dpkg/lock nicht öffnen - open (13 Permission denied)
> E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
> benste@vaiofe31m:~$ sudo apt-get autoremove
> Paketlisten werden gelesen... Fertig
> Abhängigkeitsbaum wird aufgebaut
> Lese Status-Informationen ein... Fertig
> Die folgenden Pakete wurden automatisch installiert und werden nicht länger benötigt:
> libgtkhtml3.16-cil
> Die folgenden Pakete werden ENTFERNT:
> libgtkhtml3.16-cil
> 0 aktualisiert, 0 neu installiert, 1 zu entfernen und 0 nicht aktualisiert.
> Nach dieser Operation werden 238kB Plattenplatz freigegeben.
> Möchten Sie fortfahren [J/n]? j
> (Lese Datenbank ... 347411 Dateien und Verzeichnisse sind derzeit installiert.)
> Entferne libgtkhtml3.16-cil ...
> benste@vaiofe31m:~$ sudo apt-get remove smartdimmer
> Paketlisten werden gelesen... Fertig
> Abhängigkeitsbaum wird aufgebaut
> Lese Status-Informationen ein... Fertig
> Die folgenden Pakete wurden automatisch installiert und werden nicht länger benötigt:
> toshset laptop-mode-tools
> Verwenden Sie »apt-get autoremove«, um sie zu entfernen.
> Die folgenden Pakete werden ENTFERNT:
> acpi-support powermanagement-interface smartdimmer ubuntu-desktop
> 0 aktualisiert, 0 neu installiert, 4 zu entfernen und 0 nicht aktualisiert.
> Nach dieser Operation werden 1180kB Plattenplatz freigegeben.
> Möchten Sie fortfahren [J/n]? n
> Abbruch.
> benste@vaiofe31m:~$ lshal | grep -i vgn -B 20 -A 20
> info.udi = '/org/freedesktop/Hal/devices/computer' (string)
> org.freedesktop.Hal.Device.SystemPowerManagement.method_argnames = {'num_seconds_to_sleep', 'num_seconds_to_sleep', '', '', '', 'enable_power_save'} (string list)
> org.freedesktop.Hal.Device.SystemPowerManagement.method_execpaths = {'hal-system-power-suspend', 'hal-system-power-suspend-hybrid', 'hal-system-power-hibernate', 'hal-system-power-shutdown', 'hal-system-power-reboot', 'hal-system-power-set-power-save'} (string list)
> org.freedesktop.Hal.Device.SystemPowerManagement.method_names = {'Suspend', 'SuspendHybrid', 'Hibernate', 'Shutdown', 'Reboot', 'SetPowerSave'} (string list)
> org.freedesktop.Hal.Device.SystemPowerManagement.method_signatures = {'i', 'i', '', '', '', 'b'} (string list)
> power_management.acpi.linux.version = '20080609' (string)
> power_management.can_hibernate = true (bool)
> power_management.can_suspend = true (bool)
> power_management.can_suspend_hybrid = false (bool)
> power_management.is_powersave_set = false (bool)
> power_management.quirk.none = true (bool)
> power_management.type = 'acpi' (string)
> system.chassis.manufacturer = 'Sony Corporation' (string)
> system.chassis.type = 'Notebook' (string)
> system.firmware.release_date = '08/17/2006' (string)
> system.firmware.vendor = 'Phoenix Technologies LTD' (string)
> system.firmware.version = 'R0170J3' (string)
> system.formfactor = 'laptop' (string)
> system.hardware.primary_video.product = 920 (0x398) (int)
> system.hardware.primary_video.vendor = 4318 (0x10de) (int)
> system.hardware.product = 'VGN-FE31M' (string)
> system.hardware.serial = '28247863-5007205' (string)
> system.hardware.uuid = 'BA061E00-750B-11DB-80C0-0013A949E421' (string)
> system.hardware.vendor = 'Sony Corporation' (string)
> system.hardware.version = 'C3LN17TL' (string)
> system.kernel.machine = 'i686' (string)
> system.kernel.name = 'Linux' (string)
> system.kernel.version = '2.6.27-7-generic' (string)
>
> udi = '/org/freedesktop/Hal/devices/acpi_CPU0'
> info.capabilities = {'processor'} (string list)
> info.category = 'processor' (string)
> info.parent = '/org/freedesktop/Hal/devices/computer' (string)
> info.product = 'Intel(R) Core(TM)2 CPU T5600 @ 1.83GHz' (string)
> info.udi = '/org/freedesktop/Hal/devices/acpi_CPU0' (string)
> linux.acpi_path = '/proc/acpi/processor/CPU0' (string)
> linux.acpi_type = 1 (0x1) (int)
> linux.hotplug_type = 4 (0x4) (int)
> processor.can_throttle = true (bool)
> processor.number = 0 (0x0) (int)
>
>
> After all, keys are woking like before, but doesn't trigger any smartdimmer action.
> I wasn't sure whether to remove smartdimme or not because your reinstall command just tried to update it or?
>