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
Next revisionBoth sides next revision
ptouch [2017/03/17 16:50] – [I want my printer to have always the same dev file name] rootptouch [2018/03/20 13:24] – [I want my printer to have always the same dev file name] root
Line 265: Line 265:
 SUBSYSTEM=="usb", ATTRS{modalias}=="usb:v067Bp2305d0200dc00dsc00dp00ic07isc01ip02" , SYMLINK+="dot0" SUBSYSTEM=="usb", ATTRS{modalias}=="usb:v067Bp2305d0200dc00dsc00dp00ic07isc01ip02" , SYMLINK+="dot0"
 SUBSYSTEM=="usbmisc", ATTRS{product}=="PT-2420PC"  , SYMLINK+="labelprinter0" SUBSYSTEM=="usbmisc", ATTRS{product}=="PT-2420PC"  , SYMLINK+="labelprinter0"
-SUBSYSTEM=="usbmisc", ATTRS{product}=="EHCI Host Controller", SYMLINK+="dot0"+SUBSYSTEM=="usbmisc", ATTRS{product}=="IEEE-1284 Controller" , SYMLINK+="dot0"
 </code> </code>
 +
  
 This creates file /dev/dot0 for our dotmatric printer connected to usb-parallel adapter. This creates file /dev/dot0 for our dotmatric printer connected to usb-parallel adapter.
 [[http://www.reactivated.net/writing_udev_rules.html#example-printer|See other udev examples]] [[http://www.reactivated.net/writing_udev_rules.html#example-printer|See other udev examples]]
 +
 +To test new rules without rebooting
 +<code bash>
 +udevadm control --reload-rules && udevadm trigger
 +</code>
 +
  
 The printer which should have access to thouse special dev file needs to be added in the group lp. The printer which should have access to thouse special dev file needs to be added in the group lp.
 
ptouch.txt · Last modified: 2019/07/16 13:37 (external edit)