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
ptouch [2018/03/20 13:24] – [I want my printer to have always the same dev file name] rootptouch [2024/10/24 22:36] (current) – [I want my printer to have always the same dev file name] root
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 266: Line 267:
 SUBSYSTEM=="usbmisc", ATTRS{product}=="PT-2420PC"  , SYMLINK+="labelprinter0" SUBSYSTEM=="usbmisc", ATTRS{product}=="PT-2420PC"  , SYMLINK+="labelprinter0"
 SUBSYSTEM=="usbmisc", ATTRS{product}=="IEEE-1284 Controller" , SYMLINK+="dot0" SUBSYSTEM=="usbmisc", ATTRS{product}=="IEEE-1284 Controller" , SYMLINK+="dot0"
 +
 +SUBSYSTEM=="usbmisc", ATTRS{product}=="EHCI Host Controller" , SYMLINK+="dot0"
 +
 +SUBSYSTEM=="usbmisc", ATTRS{product}=="xHCI Host Controller" , SYMLINK+="dot0"
 </code> </code>
  
Line 275: Line 280:
 <code bash> <code bash>
 udevadm control --reload-rules && udevadm trigger udevadm control --reload-rules && udevadm trigger
 +usbreset 1a86:7584
 +udevadm test /dev/usb/lp1
 </code> </code>
  
 
ptouch.1521548693.txt.gz · Last modified: (external edit)