User Tools

Site Tools


linux:laptop

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
linux:laptop [2020/09/09 11:56] mslinux:laptop [2024/10/18 16:12] (current) ms
Line 12: Line 12:
         Driver "libinput"         Driver "libinput"
         Option "Tapping" "on"         Option "Tapping" "on"
 +EndSection
 </code> </code>
 ==== Sondertasten Fn ==== ==== Sondertasten Fn ====
Line 26: Line 27:
 </code>     </code>    
 <code> <code>
-home/user/bin/vol_up.sh+/home/user/bin/vol_up.sh
  
 amixer set Master 2%+ >/dev/null amixer set Master 2%+ >/dev/null
 +VOLUME=`amixer get Master | sed -ne '/%/s/.*\[\(.*\)%\].*/\1/p'`
 +osd_cat --colour=Green -f '-adobe-*-*-r-*-*-*-240-*-*-*-*-*-*' -p bottom -A center -o 100 -d 1 -b percentage -P $VOLUME -T "Volume $VOLUME%"
 +</code>
 +Mit Fn + F2 leiser
 +<code>
 +/home/user/.config/openbox/rc.xml
 +
 +    <keybind key="XF86AudioLowerVolume">
 +     <action name="Execute">
 +       <command>/home/user/bin/vol_down.sh</command>
 +     </action>
 +    </keybind>
 +</code>
 +<code>
 +/home/user/bin/vol_down.sh
 +
 +amixer set Master 2%- >/dev/null
 VOLUME=`amixer get Master | sed -ne '/%/s/.*\[\(.*\)%\].*/\1/p'` VOLUME=`amixer get Master | sed -ne '/%/s/.*\[\(.*\)%\].*/\1/p'`
 osd_cat --colour=Green -f '-adobe-*-*-r-*-*-*-240-*-*-*-*-*-*' -p bottom -A center -o 100 -d 1 -b percentage -P $VOLUME -T "Volume $VOLUME%" osd_cat --colour=Green -f '-adobe-*-*-r-*-*-*-240-*-*-*-*-*-*' -p bottom -A center -o 100 -d 1 -b percentage -P $VOLUME -T "Volume $VOLUME%"
Line 54: Line 72:
 br=$((act_br*100/max_br)) br=$((act_br*100/max_br))
 osd_cat --colour=Green -f '-adobe-*-*-r-*-*-*-240-*-*-*-*-*-*' -p bottom -A center -o 100 -d 1 -b percentage -P $br -T "Brightness $br%" osd_cat --colour=Green -f '-adobe-*-*-r-*-*-*-240-*-*-*-*-*-*' -p bottom -A center -o 100 -d 1 -b percentage -P $br -T "Brightness $br%"
 +</code>
 +==== ACPI Steuerung ====
 +Unter /proc/acpi/ibm/ sind Dateien zum lesen und schreiben die Teile des Laptops steuern.
 +<code>
 +root> ls -l /proc/acpi/ibm/
 +-rw-r--r-- 1 root root 0 Sep  9 12:07 beep
 +-rw-r--r-- 1 root root 0 Sep  9 12:07 bluetooth
 +-rw-r--r-- 1 root root 0 Sep  9 12:07 cmos
 +-r--r--r-- 1 root root 0 Sep  9 12:07 driver
 +-rw-r--r-- 1 root root 0 Sep  9 12:07 fan
 +-rw-r--r-- 1 root root 0 Sep  9 12:07 hotkey
 +-rw-r--r-- 1 root root 0 Sep  9 12:07 kbdlight
 +-rw-r--r-- 1 root root 0 Sep  9 12:07 led
 +-rw-r--r-- 1 root root 0 Sep  9 12:07 light
 +-rw------- 1 root root 0 Sep  9 12:07 video
 +-rw-r--r-- 1 root root 0 Sep  9 12:07 volume
 +</code>
 +Lüfter abfragen
 +<code>
 +cat /proc/acpi/ibm/fan 
 +status:         enabled
 +speed:          1639
 +level:          auto
 +</code>
 +Lüfter steuern
 +<code>
 +echo "options thinkpad_acpi fan_control=1" > /etc/modprobe.d/thinkpad_acpi.conf
 +</code>
 +<code>
 +echo level 0 > /proc/acpi/ibm/fan       # fan off
 +echo level <1-7> > /proc/acpi/ibm/fan   # fan speed 1-7
 +echo level auto > /proc/acpi/ibm/fan
 +</code>
 +
 +Tastaturbeleuchtung steuern
 +<code>
 +root> echo 1 > /proc/acpi/ibm/kbdlight
 +-> Tastaturbeleuchtung mittlere Helligkeit
 +
 +root> echo 2 > /proc/acpi/ibm/kbdlight
 +-> Tastaturbeleuchtung hohe Helligkeit
 +
 +root> echo 0 > /proc/acpi/ibm/kbdlight
 +-> Tastaturbeleuchtung aus
 +</code>
 +Einschaltknopf LED steuern
 +<code>
 +root> echo "0 blink" > /proc/acpi/ibm/led
 +-> LED blinken lassen
 +
 +root> echo "0 off" > /proc/acpi/ibm/led
 +-> LED ausschalten
 +
 +root> echo "0 on" > /proc/acpi/ibm/led
 +-> LED einschalten
 </code> </code>
linux/laptop.1599645394.txt.gz · Last modified: 2023/01/11 20:30 (external edit)

Except where otherwise noted, content on this wiki is licensed under the following license: Public Domain
Public Domain Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki