Visualizzazione dei risultati da 1 a 4 su 4

Discussione: acpi e blank screen

  1. #1

    acpi e blank screen

    ciao,
    sull' IBM ThinkPad T41 con Mandriva 2007 Spring non mi funziona il Blank Screen (Fn+F3).
    ACPI è in esecuzione, L'evento blanck c'è ed è settato:

    codice:
    ll blank
    -rwxr-xr-x 1 root root 74 ago  7  2004 blank
    codice:
    event=ibm/hotkey HKEY 00000080 00001003
    action=/etc/acpi/actions/blank.sh
    così come l'azione:

    codice:
    #!/bin/bash
    
    # Try to find the .Xauthority file used to start the X server
    # (based on an idea by David Schweikert <dws@ee.eth.ch>)
    
    PID=`pidof /usr/X11R6/bin/X`
    AUTH=`perl -ne'/\x00-auth\x00(.*?)\x00.*/&&print$1' /proc/$PID/cmdline`
    if [ x"$AUTH" = x ]; then
        AUTH=`perl -ne'/(^|\x00)XAUTHORITY=(.*?)\x00/&&print$2' /proc/$PID/environ`
    fi
    export XAUTHORITY=$AUTH
    
    /usr/bin/xset -display :0 dpms force standby
    codice:
    # ll blank.sh
    -rwxr-xr-x 1 root root 413 apr 12 17:47 blank.sh
    Come mai non va allora? o_O
    Grazie
    AMD Phenom II X6 1090T, ASUS M3A78-CM, GTX460 OC 1GB, CentOS 7 & Thinkpad T410 windows & Fairphone FP2

  2. #2
    il comando
    codice:
    /usr/bin/xset -display :0 dpms force standby
    funziona, spegne lo schermo;
    il tasto che attiva l'evento (fn-F3) è mappato correttamente
    AMD Phenom II X6 1090T, ASUS M3A78-CM, GTX460 OC 1GB, CentOS 7 & Thinkpad T410 windows & Fairphone FP2

  3. #3
    ho trovato un post che parla appunto di acpi su Mandriva, per ora ho modificato solo l'event blank.
    ho riavviato il servizio però non funziona
    AMD Phenom II X6 1090T, ASUS M3A78-CM, GTX460 OC 1GB, CentOS 7 & Thinkpad T410 windows & Fairphone FP2

  4. #4

    seguendo il link ero riuscito a far andare il blank screen:

    Fn + F3 to turn display backlight off/on:
    * Edit or create the file /etc/acpi/events/blank
    Code:
    event=ibm/hotkey HKEY 00000080 00001003
    action=/etc/acpi/actions/blank.sh

    * Edit or create the file /etc/acpi/actions/blank.sh
    Code:
    #!/bin/bash

    RADEONTOOL='/usr/sbin/radeontool'

    STATUS=`$RADEONTOOL light|awk '/The radeon backlight looks / {print $5}'`;

    if [ $STATUS == "on" ] ; then
    $RADEONTOOL light off
    elif [ $STATUS == "off" ] ; then
    $RADEONTOOL light on
    fi

    anche se non è proprio come su windows dove basta muover il mouse o premere qualcosa sulla tastiera per ripristinar lo schermo e tornar alla richiesta della password per sbloccare lo screensaver... una protezione in più che manca qui -.-
    AMD Phenom II X6 1090T, ASUS M3A78-CM, GTX460 OC 1GB, CentOS 7 & Thinkpad T410 windows & Fairphone FP2

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.