Differences

This shows you the differences between two versions of the page.

Link to this comparison view

ptouch [2017/03/23 16:40] – [I want my printer to have always the same dev file name] rootptouch [Unknown date] (current) – external edit (Unknown date) 127.0.0.1
Line 100: Line 100:
  puts "image bitmap start #{zacatek_obrazku=n}"  puts "image bitmap start #{zacatek_obrazku=n}"
    
- return obrazek,sirka,sirka_v_bytech,delka,zacatek_obrazku+ return obrazek,sirka,sirka_v_bytech,delka,zacatek_obrazku   
 +# orazek- picture, sirka- width, sirka_v_bytech - width in bytes, delke - length,  zacatek_obrazku - the beggining of the picture
 end end
  
Line 267: Line 268:
 SUBSYSTEM=="usbmisc", ATTRS{product}=="IEEE-1284 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.1490283629.txt.gz · Last modified: 2017/03/23 16:40 (external edit)