PDA

View Full Version : [kubuntu] Keyboard OFF after sleep



metRo_
April 21st, 2011, 07:18 PM
Hi,
My keyboards goes OFF when i enter in sleep mode, so after i need to insert my pass but i can't because keyboard doesn't work :S

Zorael
April 22nd, 2011, 08:46 PM
Is it a USB keyboard?

If so, try creating a file like /etc/pm/sleep.d/20_keyboard that looks like this;

#!/bin/bash

case "$1" in
suspend)
modprobe -r usbhid hid
;;
resume)
modprobe hid usbhid
;;
esac

It may have to be set as executable (+x), not sure.