存档

2011年9月 的存档

nice linux

2011年9月15日 评论已被关闭
Just a mark:
nice -n 19 nice
19
sudo nice -n -20 nice
-20
————-
$man nice
NICE(1)                          User Commands                         NICE(1)
NAME
       nice – run a program with modified scheduling priority
SYNOPSIS
       nice [OPTION] [COMMAND [ARG]…]
DESCRIPTION
       Run  COMMAND  with an adjusted niceness, which affects process scheduling.  With no COMMAND, print the current nice-
       ness.  Nicenesses range from -20 (most favorable scheduling) to 19 (least favorable).
       -n, –adjustment=N
              add integer N to the niceness (default 10)
       –help display this help and exit
       –version
              output version information and exit
       NOTE: your shell may have its own version of nice, which usually supersedes  the  version  described  here.   Please
       refer to your shell?. documentation for details about the options it supports.
分类: linux 标签:

reset low speed USB device using ehci_hcd

2011年9月6日 评论已被关闭
dmesg has such logs:
usb 1-5.1: reset low speed USB device using ehci_hcd and address 4
usb 1-5.1: reset low speed USB device using ehci_hcd and address 4
usb 1-5.1: reset low speed USB device using ehci_hcd and address 4
usb 1-5.1: reset low speed USB device using ehci_hcd and address 4
usb 1-5.1: reset low speed USB device using ehci_hcd and address 4
usb 1-5.1: reset low speed USB device using ehci_hcd and address 4
usb 1-5.1: reset low speed USB device using ehci_hcd and address 4
# modprobe –help
modprobe: unrecognized option `–help’
Usage: modprobe [-v] [-V] [-C config-file] [-n] [-i] [-q] [-b] [-o <modname>] <modname> [parameters…]
modprobe -r [-n] [-i] [-v] <modulename> …
modprobe -l -t <dirname> [ -a <modulename> …]
#modprobe -r ehci_hcd
Sep  6 03:32:05 2hei.net kernel: usb 1-5.1: reset low speed USB device using ehci_hcd and address 4
Sep  6 03:33:44 2hei.net kernel: ehci_hcd 0000:00:1d.7: remove, state 1
Sep  6 03:33:44 2hei.net kernel: usb usb1: USB disconnect, address 1
Sep  6 03:33:44 2hei.net kernel: usb 1-5: USB disconnect, address 3
Sep  6 03:33:44 2hei.net kernel: usb 1-5.1: USB disconnect, address 4
Sep  6 03:33:44 2hei.net kernel: ehci_hcd 0000:00:1d.7: USB bus 1 deregistered
Sep  6 03:33:44 2hei.net kernel: ACPI: PCI interrupt for device 0000:00:1d.7 disabled
Sep  6 03:33:44 2hei.net kernel: usb 4-1: new full speed USB device using uhci_hcd and address 2
Sep  6 03:33:44 2hei.net kernel: usb 4-1: configuration #1 chosen from 1 choice
Sep  6 03:33:44 2hei.net kernel: hub 4-1:1.0: USB hub found
Sep  6 03:33:44 2hei.net kernel: hub 4-1:1.0: 3 ports detected
Sep  6 03:33:44 2hei.net kernel: usb 4-1.1: new full speed USB device using uhci_hcd and address 3
Sep  6 03:33:44 2hei.net kernel: usb 4-1.1: configuration #1 chosen from 1 choice
Sep  6 03:33:44 2hei.net kernel: input: American Megatrends Inc. Virtual Keyboard and Mouse as /class/input/input4
Sep  6 03:33:44 2hei.net kernel: input: USB HID v1.10 Keyboard [American Megatrends Inc. Virtual Keyboard and Mouse] on usb-0000:00:1d.2-1.1
Sep  6 03:33:44 2hei.net kernel: input: American Megatrends Inc. Virtual Keyboard and Mouse as /class/input/input5
Sep  6 03:33:44 2hei.net kernel: input: USB HID v1.10 Mouse [American Megatrends Inc. Virtual Keyboard and Mouse] on usb-0000:00:1d.2-1.1
分类: linux 标签: