准备The first step is to make Hotplug execute scripts in /etc/hotplug.d/button when a button is clicked. Modify /etc/hotplug2.rules — remove '^' before 'button' as follow:$include /etc/hotplug2-common.rules SUBSYSTEM ~~ (^net$|^input$|button$|^usb$|^ieee1394$|...【阅读全文】