u/lukmly013 💾 (lemmy.sdf.org)

I like computers, trains, space, radio-related everything and a bunch of other tech related stuff. User of GNU+Linux.
I am also dumb and worthless.
My laptop is ThinkPad L390y running Arch.
I own RTL-SDRv3 and RSP1 clone.

SDF Unix shell username: user224

  • 39 Posts
  • 996 Comments
Joined 3 years ago
cake
Cake day: June 17th, 2023

help-circle


  • IDE CD-ROM

    Yeah. I have 2, so I want to use them. The dangerous thingy is an IDE to SATA adapter. If I manage to find DVD-RW drive with front audio and a play button, I’d like to use that in an external 5.25" drive enclosure I have.
    The goal: External DVD drive that can also work as a simple standalone CD player.

    All I have now is 2 CD-RW drives like that.
    And one of them (BENQ 4816A) doesn’t seem to work with Linux for some reason.
    Sample from dmesg:

    [303803.821623] usb 1-4: new high-speed USB device number 62 using xhci_hcd
    [303803.953712] usb 1-4: New USB device found, idVendor=152d, idProduct=2338, bcdDevice= 1.00
    [303803.953735] usb 1-4: New USB device strings: Mfr=1, Product=2, SerialNumber=5
    [303803.953745] usb 1-4: Product: USB to ATA/ATAPI bridge
    [303803.953752] usb 1-4: Manufacturer: JMicron
    [303803.953758] usb 1-4: SerialNumber: 622222222222
    [303803.956959] usb-storage 1-4:1.0: USB Mass Storage device detected
    [303803.957727] scsi host0: usb-storage 1-4:1.0
    [303804.972734] scsi 0:0:0:0: CD-ROM            ATAPI    CD-R/RW 48X16    9.GH PQ: 0 ANSI: 0 CCS
    [303809.784518] sr 0:0:0:0: [sr0] scsi3-mmc drive: 48x/48x writer cd/rw xa/form2 cdda tray
    [303818.737158] usb 1-4: reset high-speed USB device number 62 using xhci_hcd
    [303826.573935] usb 1-4: reset high-speed USB device number 62 using xhci_hcd
    [303838.238333] sr 0:0:0:0: Attached scsi CD-ROM sr0
    [303838.238795] sr 0:0:0:0: Attached scsi generic sg0 type 5
    [303845.622418] usb 1-4: reset high-speed USB device number 62 using xhci_hcd
    [303918.801647] usb 1-4: reset high-speed USB device number 62 using xhci_hcd
    [303936.512741] usb 1-4: reset high-speed USB device number 62 using xhci_hcd
    [303941.673166] usb 1-4: reset high-speed USB device number 62 using xhci_hcd
    [303950.281142] sr 0:0:0:0: [sr0] tag#0 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_OK cmd_age=1s
    [303950.281164] sr 0:0:0:0: [sr0] tag#0 Sense Key : Illegal Request [current] 
    [303950.281176] sr 0:0:0:0: [sr0] tag#0 Add. Sense: Illegal mode for this track
    [303950.281186] sr 0:0:0:0: [sr0] tag#0 CDB: Read(10) 28 00 00 05 5d ec 00 00 02 00
    [303950.281192] blk_print_req_error: 80 callbacks suppressed
    [303950.281198] I/O error, dev sr0, sector 1406896 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 2
    [303950.555155] sr 0:0:0:0: [sr0] tag#0 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_OK cmd_age=0s
    [303950.555173] sr 0:0:0:0: [sr0] tag#0 Sense Key : Illegal Request [current] 
    [303950.555183] sr 0:0:0:0: [sr0] tag#0 Add. Sense: Illegal mode for this track
    [303950.555192] sr 0:0:0:0: [sr0] tag#0 CDB: Read(10) 28 00 00 05 5d ec 00 00 02 00
    [303950.555197] I/O error, dev sr0, sector 1406896 op 0x0:(READ) flags 0x0 phys_seg 2 prio class 2
    [303950.555215] buffer_io_error: 72 callbacks suppressed
    [303950.555220] Buffer I/O error on dev sr0, logical block 351724, async page read
    [303950.555232] Buffer I/O error on dev sr0, logical block 351725, async page read
    

    Just keeps resetting, eventually spams a lot of errors, then goes on to start resetting again.

    VLC manages to use it for audio playback. Sort of. It can load CD info, play a track, and skip within the track. But when trying to play a different track, it again resets the drive, so it has to load the disc again, causing ~15 second gaps between tracks.

    Both digital (on PC) and analog (on drive) audio playback worked just fine on Windows 2000 after passing the USB to VirtualBox.




  • Hey.
    So, it would seem I gave you a solution that’s still more complicated than it needs to be.
    You see, I was using Debian at the time I initially played with this, but now I am testing it on Arch. When you check the man pages, you’ll see an interesting option available on Arch.

    So…
    Waypipe on Debian 13 (latest) is version 0.9.2.
    Meanwhile on Arch we have 0.11.0.

    There’s an interesting new option, --xwls.

    Use xwayland-satellite to run X clients under Wayland; for server or ssh modes. This binds X display sockets for the next available display number and sets the DISPLAY environment variable for the program run under waypipe server. This option will only work if xwayland-satellite is installed and in PATH.

    Which means that on Debian you have to:

    1. Compile xwayland-satellite
    2. Add xwayland-satellite to directory in PATH
    3. Compile new version of waypipe from source
    4. Add it to directory in PATH, at least for server

    While on Arch you just pacman -Sy xwayland-satellite waypipe.

    Then it works with waypipe --xwls ssh user@IP program.
    It seems to have been added in 0.10.6.











  • please take a look and tell me what you think

    Sorry if it seems like I do, but I in fact do not have a brain.
    I just found this tool gets the job done, and that’s it.

    I typically just use it in a pretty stupid manual way.

    local$ waypipe -c zstd=6 ssh username@IP
    remote$ export DISPLAY=:90
    remote$ ./xwayland-satellite :90 &
    remote$ xfce4-panel
    

    Even the xfce4-panel discovery was an accident.
    I was using waypipe before knowing about xwayland-satellite. I wanted to run an X program, so in the same shell I typed vncserver to, well, launch a VNC server. That invoked xfce4-session, BUT since the WAYLAND_DISPLAY was set, XFCE DE attached to waypipe rather than XTigerVNC, launching a full remote desktop over my local one.
    And out of that, xfce4-panel proves pretty useful. I can easily launch other programs using GUI, and also see widgets on that panel.

    Here’s what I mean, if that sounds confusing:

    Plasma panel (bottom) is local, XFCE panel (top and middle bottom) are remote.
    Right, and you’re probably wondering why that app launcher at the top looks shattered. Well, both can’t be opened at once. If the application launcher goes out of focus, it closes.
    But also, I use the shatter effect in KDE Plasma, so it doesn’t go away immediately. This is just as close as I could get with screenshot timing.






  • We have that available, I just use mobile data because I disagree with their ToS.
    The ToS is so restrictive that you basically immediately break it after connecting a device. I was told that, of course, they don’t really care.
    Except - there is a point stating the provider has the right to access your computer if there is a suspicion of ToS violation. Considering the network here is a student-run organization, that could easily be exploited if you piss off someone.
    Maybe I am just paranoid, but no thanks.

    Otherwise, from talking with them, most dorms have 1Gbit, some have 2.5Gbit, and all share a 40Gbit link which could apparently do 100Gbit (I think), but it’s capped due to licensing.
    They leverage national academic network.
    Oh, and they also got a class B subnet back when everyone was sure there’s just way too many IPv4s, so NAT isn’t being used here.