[Gelöst] Fn+F3 Bildschirm wird dunkel, aber Hintergrundbeleuchtung leuchtet trotzdem noch

JetroNick

New member
Registriert
11 Jan. 2007
Beiträge
1.544
[Gelöst] Fn+F3 Bildschirm wird dunkel, aber Hintergrundbeleuchtung leuchtet trotzdem noch

Hallo zusammen,
habe ein X31 mit Ubuntu 9.04, unter WinXP war ich es gewohnt, wenn man Fn+F3 drückt geht der Bildschirm aus.
Jetzt unter Ubuntu wird der Bildschirm zwar auch schwarz, aber die Hintergrundbeleuchtung brennt weiter. Dies war unter XP nicht so....

Könnt ihr mir sagen was ich einstellen muss, damit der Bildschirm unter Ubuntu richtig aus geht.

Gruß
Jetronic
 
@desoxy: Coole Sache, ja dann geht der Bildschirm aus.... wie kann ich das jetzt auch Fn+F3 konfigurieren?
 
Das wird im Verzeichnis /etc/acpi/events/ eingestellt. Wie es genau in Ubuntu ist, weiß ich nicht, aber auf jeden Fall sollen da Dateien rumliegen mit dem Inhalt:

Code:
event=<bla-bla1>
action=<bla-bla2>

bla-bla1 kannst du rausfinden, wenn du acpi_listen startest und die Tastenkombination drückst. Und bla-bla2 ist der Befehl...
 
Hallo zusammen, bin leider noch nicht richtig weitergekommen.
Bei einem T400 soll das Fn+F3 bzw. dort Fn+F2 Out-of-the-Box funktionieren (richtig mit Hindergrundbeleuchtung AUS), wenn mir jemand bei dem das auch funktioniert seinen Inhalt von "/etc/acpi/" in gepackter Form zukommen lassen könnte, wäre ich sehr dankbar.

Ich könnte dann evtl. eher durchsteigen, wenn ich was zum vergleichen habe.

Gruß
Jetronic
 
Moin,

auf meinem R61 hat desoxys Ansatz geklappt (danke dafür). Da Fn+F6 nicht belegt war, habe ich ich diese Tastenkombi gewählt und in die Datei /etc/acpi/events/thinkpad-backlight-off (neu erstellt) geschrieben. Durch Start von acpi_listen und Eingabe der Tastenkombi findest du das event heraus und trägst es ein, unter action eben die auszuführende Aktion:
Code:
# FN + F6 action
event=ibm/hotkey HKEY 00000080 00001006
action=xset dpms force off
Danach habe ich noch /etc/init.d/acpid restart und /etc/init.d/acpi-support restart ausgeführt, um die Änderungen zu aktivieren.
Wenn ich dich jetzt richtig verstanden habe, soll dein X31 (anders als mein R61) von Haus aus diese Funktion über Fn+F3 bieten. Entweder nimmst du ebenfalls unbelegte Tasten (falls vorh.), oder du versuchst es in der Datei mit Fn+F3.

Grüße
 
@nilfilter:
Super ich Danke dir!! Hat 1A funktioniert mit Fn+F6.

Werde es jetzt noch versuchen mit Fn+F3, werde dann weiter berichten.

Gruß
Jetronic
 
Die Lösung kam von desoxy, aber schön zu hören, dass es nun klappt.
 
Eine Frage habe ich noch, nach einem Neustart muss ich /etc/init.d/acpid restart und /etc/init.d/acpi-support restart ausgeführen damit
das ganze mit Fn+F6 wieder funktioniert.

Ist das bei dir auch so nilfilter?


Gruß
Jetronic
 
Ja, hast Recht. Ist mir nicht aufgefallen, da ich nur selten neustarte. Ein /etc/init.d/acpid restart reicht allerdings aus.

Wenn ich mich nicht wieder täusche, braucht man noch ein entsprechendes Script in /etc/acpi, aufgerufen durch die action-Zeile unserer Datei in /etc/acpi/events. Siehe auch http://www.thinkwiki.org/wiki/How_to_configure_acpid
Ob ich das hinbekomme, steht in den Sternen. Könnte jemand mit mehr als meinem gefährlichen Halbwissen mal einspringen?

EDIT: Auf die Schnelle geht's auch so:
Lege eine neue Tastenkombination unter System | Einstellungen | Tastenkombinationen -> Hinzufügen an. Unter Name trägst du irgendwas ein, unter Befehl xset dpms force off. Dann klickst du rechts auf Deaktiviert und wirst zur Eingabe einer Tastenkombination aufgefordert. Ich habe Strg+F6 gewählt.
 
Wird denn das acpid-daemon standardmäßig gestartet? Kannst du mit dem folgenden Befehl rausfinden (natürlich bevor du acpid restart machst :D )
Code:
sudo chkconfig --list
 
Hallo,
dieses liefert sudo chkconfig --list:

Code:
x31@ibm:~$ sudo chkconfig --list
NetworkManager        0:off  1:off  2:on   3:on   4:on   5:on   6:off
acpi-support          0:off  1:off  2:on   3:on   4:on   5:on   6:off
acpid                 0:off  1:off  2:on   3:on   4:on   5:on   6:off
alsa-utils            0:off  1:off  2:off  3:off  4:off  5:off  6:off
anacron               0:off  1:off  2:on   3:on   4:on   5:on   6:off
apmd                  0:off  1:off  2:on   3:on   4:on   5:on   6:off
apparmor              0:off  1:off  2:off  3:off  4:off  5:off  6:off  S:on 
apport                0:off  1:off  2:on   3:on   4:on   5:on   6:off
atd                   0:off  1:off  2:on   3:on   4:on   5:on   6:off
avahi-daemon          0:off  1:off  2:on   3:on   4:on   5:on   6:off
binfmt-support        0:off  1:off  2:on   3:on   4:on   5:on   6:off
bluetooth             0:off  1:off  2:on   3:on   4:on   5:on   6:off
bootlogd              0:off  1:off  2:off  3:off  4:off  5:off  6:off
bootlogs.sh           0:off  1:on   2:on   3:on   4:on   5:on   6:off
bootmisc.sh           0:off  1:off  2:off  3:off  4:off  5:off  6:off  S:on 
brltty                0:off  1:off  2:off  3:off  4:off  5:off  6:off  S:on 
checkfs.sh            0:off  1:off  2:off  3:off  4:off  5:off  6:off  S:on 
checkroot.sh          0:off  1:off  2:off  3:off  4:off  5:off  6:off  S:on 
console-setup         0:off  1:off  2:off  3:off  4:off  5:off  6:off  S:on 
cron                  0:off  1:off  2:on   3:on   4:on   5:on   6:off
cups                  0:off  1:off  2:on   3:on   4:on   5:on   6:off
dbus                  0:off  1:off  2:on   3:on   4:on   5:on   6:off
dns-clean             0:off  1:on   2:on   3:on   4:on   5:on   6:off
fancontrol            0:off  1:off  2:on   3:on   4:on   5:on   6:off
gdm                   0:off  1:off  2:on   3:on   4:on   5:on   6:off
glibc.sh              0:off  1:off  2:off  3:off  4:off  5:off  6:off
hal                   0:off  1:off  2:on   3:on   4:on   5:on   6:off
hddtemp               0:off  1:off  2:on   3:on   4:on   5:on   6:off
hostname.sh           0:off  1:off  2:off  3:off  4:off  5:off  6:off  S:on 
hotkey-setup          0:off  1:off  2:on   3:on   4:on   5:on   6:off
hwclock.sh            0:off  1:off  2:off  3:off  4:off  5:off  6:off
keyboard-setup        0:off  1:off  2:off  3:off  4:off  5:off  6:off  S:on 
killprocs             0:off  1:on   2:off  3:off  4:off  5:off  6:off
klogd                 0:off  1:off  2:on   3:on   4:on   5:on   6:off
laptop-mode           0:off  1:off  2:on   3:on   4:on   5:on   6:off
linux-restricted-modules-common  0:on   1:off  2:off  3:off  4:off  5:off  6:off  S:on 
lm-sensors            0:off  1:off  2:off  3:off  4:off  5:off  6:off  S:on 
module-init-tools     0:off  1:off  2:off  3:off  4:off  5:off  6:off  S:on 
mountall-bootclean.sh 0:off  1:off  2:off  3:off  4:off  5:off  6:off  S:on 
mountall.sh           0:off  1:off  2:off  3:off  4:off  5:off  6:off  S:on 
mountdevsubfs.sh      0:off  1:off  2:off  3:off  4:off  5:off  6:off  S:on 
mountkernfs.sh        0:off  1:off  2:off  3:off  4:off  5:off  6:off  S:on 
mountnfs-bootclean.sh 0:off  1:off  2:off  3:off  4:off  5:off  6:off  S:on 
mountnfs.sh           0:off  1:off  2:off  3:off  4:off  5:off  6:off  S:on 
mountoverflowtmp      0:off  1:off  2:off  3:off  4:off  5:off  6:off  S:on 
mtab.sh               0:off  1:off  2:off  3:off  4:off  5:off  6:off  S:on 
networking            0:on   1:off  2:off  3:off  4:off  5:off  6:off  S:on 
ondemand              0:off  1:off  2:on   3:on   4:on   5:on   6:off
pcmciautils           0:off  1:off  2:off  3:off  4:off  5:off  6:off  S:on 
policykit             0:off  1:off  2:on   3:on   4:on   5:on   6:off
pppd-dns              0:off  1:on   2:on   3:on   4:on   5:on   6:off
procps                0:off  1:off  2:off  3:off  4:off  5:off  6:off  S:on 
pulseaudio            0:off  1:off  2:on   3:on   4:on   5:on   6:off
rc.local              0:off  1:off  2:on   3:on   4:on   5:on   6:off
rcS                   0:off  1:off  2:off  3:off  4:off  5:off  6:off
readahead             0:off  1:off  2:off  3:off  4:off  5:off  6:off  S:on 
readahead-desktop     0:off  1:off  2:off  3:off  4:off  5:off  6:off  S:on 
rmnologin             0:off  1:off  2:on   3:on   4:on   5:on   6:off
rsync                 0:off  1:off  2:on   3:on   4:on   5:on   6:off
saned                 0:off  1:off  2:on   3:on   4:on   5:on   6:off
screen-cleanup        0:off  1:off  2:off  3:off  4:off  5:off  6:off  S:on 
sendsigs              0:on   1:off  2:off  3:off  4:off  5:off  6:off
stop-bootlogd         0:off  1:off  2:off  3:off  4:off  5:off  6:off
stop-bootlogd-single  0:off  1:off  2:off  3:off  4:off  5:off  6:off
stop-readahead        0:off  1:off  2:on   3:on   4:on   5:on   6:off
sysfsutils            0:off  1:off  2:on   3:on   4:on   5:on   6:off
sysklogd              0:off  1:off  2:on   3:on   4:on   5:on   6:off
system-tools-backends 0:off  1:off  2:on   3:on   4:on   5:on   6:off
udev                  0:off  1:off  2:off  3:off  4:off  5:off  6:off  S:on 
udev-finish           0:off  1:off  2:off  3:off  4:off  5:off  6:off  S:on 
ufw                   0:off  1:off  2:off  3:off  4:off  5:off  6:off  S:on 
umountfs              0:on   1:off  2:off  3:off  4:off  5:off  6:off
umountnfs.sh          0:on   1:off  2:off  3:off  4:off  5:off  6:off
umountroot            0:on   1:off  2:off  3:off  4:off  5:off  6:off
urandom               0:on   1:off  2:off  3:off  4:off  5:off  6:off  S:on 
usplash               0:off  1:off  2:on   3:on   4:on   5:on   6:off
winbind               0:off  1:off  2:on   3:on   4:on   5:on   6:off
wpa-ifupdown          0:on   1:off  2:off  3:off  4:off  5:off  6:off
x11-common            0:off  1:off  2:off  3:off  4:off  5:off  6:off  S:on

Wenn ich jetzt einen sudo /etc/init.d/acpid restart mache, zeigt sudo chkconfig --list das an:
(jetzt funktioniert Fn+F6)
Code:
x31@ibm:~$ sudo /etc/init.d/acpid restart
 * Stopping ACPI services...                                                     [ OK ] 
 * Loading ACPI modules...                                                       [ OK ] 
 * Starting ACPI services...                                                     [ OK ]
Code:
x31@ibm:~$ sudo chkconfig --list
NetworkManager        0:off  1:off  2:on   3:on   4:on   5:on   6:off
acpi-support          0:off  1:off  2:on   3:on   4:on   5:on   6:off
acpid                 0:off  1:off  2:on   3:on   4:on   5:on   6:off
alsa-utils            0:off  1:off  2:off  3:off  4:off  5:off  6:off
anacron               0:off  1:off  2:on   3:on   4:on   5:on   6:off
apmd                  0:off  1:off  2:on   3:on   4:on   5:on   6:off
apparmor              0:off  1:off  2:off  3:off  4:off  5:off  6:off  S:on 
apport                0:off  1:off  2:on   3:on   4:on   5:on   6:off
atd                   0:off  1:off  2:on   3:on   4:on   5:on   6:off
avahi-daemon          0:off  1:off  2:on   3:on   4:on   5:on   6:off
binfmt-support        0:off  1:off  2:on   3:on   4:on   5:on   6:off
bluetooth             0:off  1:off  2:on   3:on   4:on   5:on   6:off
bootlogd              0:off  1:off  2:off  3:off  4:off  5:off  6:off
bootlogs.sh           0:off  1:on   2:on   3:on   4:on   5:on   6:off
bootmisc.sh           0:off  1:off  2:off  3:off  4:off  5:off  6:off  S:on 
brltty                0:off  1:off  2:off  3:off  4:off  5:off  6:off  S:on 
checkfs.sh            0:off  1:off  2:off  3:off  4:off  5:off  6:off  S:on 
checkroot.sh          0:off  1:off  2:off  3:off  4:off  5:off  6:off  S:on 
console-setup         0:off  1:off  2:off  3:off  4:off  5:off  6:off  S:on 
cron                  0:off  1:off  2:on   3:on   4:on   5:on   6:off
cups                  0:off  1:off  2:on   3:on   4:on   5:on   6:off
dbus                  0:off  1:off  2:on   3:on   4:on   5:on   6:off
dns-clean             0:off  1:on   2:on   3:on   4:on   5:on   6:off
fancontrol            0:off  1:off  2:on   3:on   4:on   5:on   6:off
gdm                   0:off  1:off  2:on   3:on   4:on   5:on   6:off
glibc.sh              0:off  1:off  2:off  3:off  4:off  5:off  6:off
hal                   0:off  1:off  2:on   3:on   4:on   5:on   6:off
hddtemp               0:off  1:off  2:on   3:on   4:on   5:on   6:off
hostname.sh           0:off  1:off  2:off  3:off  4:off  5:off  6:off  S:on 
hotkey-setup          0:off  1:off  2:on   3:on   4:on   5:on   6:off
hwclock.sh            0:off  1:off  2:off  3:off  4:off  5:off  6:off
keyboard-setup        0:off  1:off  2:off  3:off  4:off  5:off  6:off  S:on 
killprocs             0:off  1:on   2:off  3:off  4:off  5:off  6:off
klogd                 0:off  1:off  2:on   3:on   4:on   5:on   6:off
laptop-mode           0:off  1:off  2:on   3:on   4:on   5:on   6:off
linux-restricted-modules-common  0:on   1:off  2:off  3:off  4:off  5:off  6:off  S:on 
lm-sensors            0:off  1:off  2:off  3:off  4:off  5:off  6:off  S:on 
module-init-tools     0:off  1:off  2:off  3:off  4:off  5:off  6:off  S:on 
mountall-bootclean.sh 0:off  1:off  2:off  3:off  4:off  5:off  6:off  S:on 
mountall.sh           0:off  1:off  2:off  3:off  4:off  5:off  6:off  S:on 
mountdevsubfs.sh      0:off  1:off  2:off  3:off  4:off  5:off  6:off  S:on 
mountkernfs.sh        0:off  1:off  2:off  3:off  4:off  5:off  6:off  S:on 
mountnfs-bootclean.sh 0:off  1:off  2:off  3:off  4:off  5:off  6:off  S:on 
mountnfs.sh           0:off  1:off  2:off  3:off  4:off  5:off  6:off  S:on 
mountoverflowtmp      0:off  1:off  2:off  3:off  4:off  5:off  6:off  S:on 
mtab.sh               0:off  1:off  2:off  3:off  4:off  5:off  6:off  S:on 
networking            0:on   1:off  2:off  3:off  4:off  5:off  6:off  S:on 
ondemand              0:off  1:off  2:on   3:on   4:on   5:on   6:off
pcmciautils           0:off  1:off  2:off  3:off  4:off  5:off  6:off  S:on 
policykit             0:off  1:off  2:on   3:on   4:on   5:on   6:off
pppd-dns              0:off  1:on   2:on   3:on   4:on   5:on   6:off
procps                0:off  1:off  2:off  3:off  4:off  5:off  6:off  S:on 
pulseaudio            0:off  1:off  2:on   3:on   4:on   5:on   6:off
rc.local              0:off  1:off  2:on   3:on   4:on   5:on   6:off
rcS                   0:off  1:off  2:off  3:off  4:off  5:off  6:off
readahead             0:off  1:off  2:off  3:off  4:off  5:off  6:off  S:on 
readahead-desktop     0:off  1:off  2:off  3:off  4:off  5:off  6:off  S:on 
rmnologin             0:off  1:off  2:on   3:on   4:on   5:on   6:off
rsync                 0:off  1:off  2:on   3:on   4:on   5:on   6:off
saned                 0:off  1:off  2:on   3:on   4:on   5:on   6:off
screen-cleanup        0:off  1:off  2:off  3:off  4:off  5:off  6:off  S:on 
sendsigs              0:on   1:off  2:off  3:off  4:off  5:off  6:off
stop-bootlogd         0:off  1:off  2:off  3:off  4:off  5:off  6:off
stop-bootlogd-single  0:off  1:off  2:off  3:off  4:off  5:off  6:off
stop-readahead        0:off  1:off  2:on   3:on   4:on   5:on   6:off
sysfsutils            0:off  1:off  2:on   3:on   4:on   5:on   6:off
sysklogd              0:off  1:off  2:on   3:on   4:on   5:on   6:off
system-tools-backends 0:off  1:off  2:on   3:on   4:on   5:on   6:off
udev                  0:off  1:off  2:off  3:off  4:off  5:off  6:off  S:on 
udev-finish           0:off  1:off  2:off  3:off  4:off  5:off  6:off  S:on 
ufw                   0:off  1:off  2:off  3:off  4:off  5:off  6:off  S:on 
umountfs              0:on   1:off  2:off  3:off  4:off  5:off  6:off
umountnfs.sh          0:on   1:off  2:off  3:off  4:off  5:off  6:off
umountroot            0:on   1:off  2:off  3:off  4:off  5:off  6:off
urandom               0:on   1:off  2:off  3:off  4:off  5:off  6:off  S:on 
usplash               0:off  1:off  2:on   3:on   4:on   5:on   6:off
winbind               0:off  1:off  2:on   3:on   4:on   5:on   6:off
wpa-ifupdown          0:on   1:off  2:off  3:off  4:off  5:off  6:off
x11-common            0:off  1:off  2:off  3:off  4:off  5:off  6:off  S:on

Sieht gleich aus..


Gruß
Jetronic
 
Da hat jemand das Problem schon gelöst. War doch klar - die ubuntis haben's gut :whistling:
 
@desoxy:
Funktioniert das so bei dir?
Bei mir leider nicht.... ich habe:

1. sudo vim ~/.xinitrc //In meinem Home-Verzeichnis erstellt + editiert
Code:
# fix ACPI visual hotkeys
xhost local:root# allow root to run X applications
2. Restart ACPI:
sudo /etc/init.d/acpid restart
3. Edit your sudoers file: sudo visudo
Code:
# /etc/sudoers
#
# This file MUST be edited with the 'visudo' command as root.
#
# See the man page for details on how to write a sudoers file.
#

Defaults	env_reset

# Host alias specification

# User alias specification

# Cmnd alias specification
Cmnd_Alias 	ACPID = /etc/init.d/acpid
# User privilege specification
root	ALL=(ALL) ALL

# Uncomment to allow members of group sudo to not need a password
# (Note that later entries override this, so you might need to move
# it further down)
# %sudo ALL=NOPASSWD: ALL

# Members of the admin group may gain root privileges
­min ALL=(ALL) ALL
x31 ALL = NOPASSWD : ACPID
4. Das hab ich auch noch in ~/.xinitrc kopiert: (Ob das so richtig ist????)
Code:
sudo /etc/init.d/acpid restart

Wäre nett wenn du mir deine Files mal posten könntest.

Gruß und schonmal Danke für die Mühe,
Jetronic

In Zeile 25 steht eigentlich: (modulo)­­admin ALL=(ALL) ALL
irgendiwe verschwinden die ersten 3Zeichen (% ad­) immer, sorry
 
Ich hab kein Ubuntu, also kann ich das nicht wirklich testen.

Als ich aber meine sudoers Datei vor mehreren Monaten editiert habe, habe ich noch "(root)" nach dem "=" geschrieben. Also in deinem Fall würde das so aussehen:
Code:
x31 ALL = (root) NOPASSWD: ACPID

Wird die ~/.xinitrc Datei gelesen? Du kannst z.B. folgende Zeile rein schreiben
Code:
echo 1 > /tmp/test
und nach einem Restart schauen, ob die Datei /tmp/test erstellt wurde...
 
Hallo,
so ich habe jetzt herausgefunden das es ein passendes Skript gibt,welches das Backlight ausschaltet
/etc/acpi/screenblank.sh

Ich habe es jetzt so gemacht:
1. Datei (thinkpad-backlight-off) mit Root-Rechten erstellen
Code:
sudo vim /etc/acpi/events/thinkpad-backlight-off

2. Folgenes einfügen:
Code:
	# FN + F6 action
	event=ibm/hotkey HKEY 00000080 00001006 #Tastenadresse Fn+F6
	action=/etc/acpi/screenblank.sh		#schaltet Backlight aus

3.
Code:
sudo /etc/init.d/acpid restart 
   sudo /etc/init.d/acpi-support restart

Jetzt funktioniert backlight aus mit Fn+F6
Auch nach einem Neustart bleibt das jetzt erhalten, muss keinen acpi restart machen.

Nochmals besten Dank, das ihr mir geholfen habt.

Gruß
Jetronic
 
  • ok1.de
  • ok2.de
  • thinkstore24.de
  • Preiswerte-IT - Gebrauchte Lenovo Notebooks kaufen

Werbung

Zurück
Oben