Skip to content

Instantly share code, notes, and snippets.

@illucent
Forked from petarov/ArchLinux-USB-Powersave.md
Created February 28, 2016 15:43
Show Gist options
  • Save illucent/4ea893c202c3013e6f7c to your computer and use it in GitHub Desktop.
Save illucent/4ea893c202c3013e6f7c to your computer and use it in GitHub Desktop.
Arch Linux Hints and Tricks

Mouse and Keyboard power off

Do you use an usb mouse and keyboard and have laptop_mode installed under your Arch linux ? Then maybe you have the same problems as me - mouse and keyboard getting inactive every 2 seconds or so.

To solve this, go to /etc/laptop-mode/conf.d and copy usb-autosuspend.conf to /etc/laptop-mode/conf.d/board-specific. After that run lsusb and get the ID of the usb device you want, e.g., 093a:2500 .

Open the board-specific/usb-autosuspend.conf file and find the AUTOSUSPEND_USBID_BLACKLIST conf option. Put the desired usb IDs there. You might need to run sudo laptop_mode afterwards to reload the configs.

There you go. No more suspending of your usb devices attached ;).

Issues with Flash Player

flashplugin 11.2 is no longer supported by Adobe. Use chrome-pepper-flash

Joystick/Gamepad configuration

I had the same problems as you, and found 2 solutions

  1. remove xf86-input-joystick. All of my applications that required joysticks could detect them, unfortunately they lacked deadzone settings so joystick control was not as good as i wanted.

  2. the correct place for the startkeysenabled / startmouseenabled settings appears to be 50-joystick.conf, which comes with the xf86-input-joystick package.

this is my edited version of 50-joystick.conf :

  Section "InputClass"
      Identifier "joystick catchall"
      MatchIsJoystick "on"
      MatchDevicePath "/dev/input/event*"
      Driver "joystick"
      Option "StartKeysEnabled" "False"
      Option "StartMouseEnabled" "False"
  EndSection

Disable standby

Section "ServerLayout"
    Identifier     "Layout0"
    Screen      0  "Screen0" 0 0
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "Mouse0" "CorePointer"
### add these
        Option "BlankTime" "0"
        Option "StandbyTime" "0"
        Option "SuspendTime" "0"
        Option "OffTime" "0"
EndSection

PulseAudio on Archlinux

Configuration

Configure with ALSA

Commands

  • pavucontrol - PulseAudio settings
  • pactl stat - Show defaults and configuration
  • pacmd - Intaractive PA console

Thinkpad Audio Keys

When using Archlinux with Xfce4 on a Thinkpad you may configure the audio keys using either of the two methods below:

Using Xfce4 Application Shortcuts

  • Go to Settings / Keyboard / Application Shortcuts
  • Click on Add
  • Enter the mute toggle command
    • No pulseaudio - amixer set Master toggle
    • With pulseaudio - amixer -D pulse set Master toggle

Using xbindkeys

On the command line:

Use the following to see what type of binding currently exist:

xbindkeys -s

Create a file .xbindkeysrc.scm in your home directory and add the following lines:

Toggle audio on/off:

(xbindkey '("XF86AudioMute") "amixer set Master toggle")

Note that you need to enter -D pulse, if you have pulseaudio installed.

Volume up

(xbindkey '("XF86AudioRaiseVolume") "amixer set Master 2dB+ unmute")

Volume down

(xbindkey '("XF86AudioLowerVolume") "amixer set Master 2dB- unmute")

Issues with Wi-Fi card

03:00.0 Network controller: Intel Corporation Centrino Ultimate-N 6300 (rev 3e) Subsystem: Intel Corporation Centrino Ultimate-N 6300 3x3 AGN Kernel driver in use: iwlwifi Kernel modules: iwlwifi

systemctl disable NetworkManager-wait-online.service
systemctl disable net-auto-wired.service
systemctl disable net-auto-wireless.service

What worked for me was:

systemctl disable net-auto-wired.service
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment