id start a nuclear war for a dorito

  • 1 Post
  • 87 Comments
Joined 3 years ago
cake
Cake day: January 19th, 2022

help-circle

  • I asked ChatGPT about it since I’m not sure how to go about it, and got this. Might be worth a try.

    Prompt: In a recent update to the fedora operating system they changed it so mobile broadband modems are now flagged as WWAN devices rather then ethernet devices. This is causing it to treat a usb tethered phone as a WWAN device instead of a ethernet over usb device, and the tether is not working as a result. How could a user fix this on their system?

    Answer: You can teach ModemManager to completely ignore your phone’s RNDIS interface so that NetworkManager will handle it as a normal Ethernet link again. Here’s how:

    1. Find your phone’s USB IDs
      Plug in your phone with USB‑tethering enabled and run:

      lsusb
      

      You’ll see a line like:

      Bus 002 Device 008: ID 18d1:4ee7 Google Inc. Nexus/Pixel (tethering)
      

      Note the idVendor (here 18d1) and idProduct (here 4ee7).

    2. Create a udev rule to ignore it
      As root, create /etc/udev/rules.d/99-usb-tether-ignore.rules with these contents:

      # Tell ModemManager to ignore my phone’s USB‑tether interface
      ATTRS{idVendor}=="18d1", ATTRS{idProduct}=="4ee7", ENV{ID_MM_DEVICE_IGNORE}="1"
      

      (Replace 18d1/4ee7 with your phone’s IDs.) citeturn5search4

    3. Reload udev and restart services

      sudo udevadm control --reload-rules
      sudo udevadm trigger
      sudo systemctl restart ModemManager NetworkManager
      

    After that, your tethered phone will no longer be treated as a WWAN modem but as an ordinary USB‑Ethernet device—DHCP will kick in and Internet will flow as before.


    Tip:
    If you never use a cellular modem on this machine, you can also just uninstall ModemManager entirely:

    sudo dnf remove ModemManager
    ``` citeturn5search4

  • So its treating your phone like a WWAN device like if you had mobile broadband built into the computer instead of treating it like a ethernet over usb connection. If there is a network connection showing up for it try to go in and force it to allow the phone to handle DHCP. Tethered phones act as the DHCP server in most cases, but if it thinks its an internet WWAN device the computer might be trying to be the DHCP server causing a conflict. Or force it to somehow recognize it as an ethernet connection.



  • I’ve been working on a phone tethering router so might have some insight here for you. Android can use CDC or RNDIS to tether. It depends on your phone which ones gonna be used. Try to figure out which one its using (can do this by watching logs when plugging in usb usually itll say there which type of device is connecting). When i was doing the router i had to make sure cdc_ether and rndis_host kernel modules were both loaded to ensure compatibility. It might be as simple as manually loading a module in the new kernel version. Although I’m not exactly sure how it’ll work on fedora i was doing this all on OPNsense.

    What i was doing was tethering the phone to a router (old thinkpad running router OS) then passing that connection on to its network and connecting to the Access Point on the network with my laptop. I still havent fully worked out the kinks yet but its going pretty well. Sorry i can’t be more specific for your case, but hopefully it gives you some terms you can use to google more effectively at the least.












  • Something ive actually wondered is if firefox is hurting for money so bad why doesnt it allow a toggle where a user can willingly just turn every purchase via the browser into a firefox affiliate link? If the user is approving it and its not a shady forced thing i see no issue with it, and it would generate plenty of revenue without needing to be beholden to ad companies or google. It’d be like allowing users to donate, without actually costing them any extra money, everytime they make an online purchase.


  • Flatpak is very useful for a lot of things, but i really dont think it should be the default. It still has some weird issues. For example if you run a seperate home and root partition flatpak by default will install things into your root partition which quickly fills up. You have to go in and do a bunch of work to get it to use the home partition.

    Or for example issues with themeing and cursors. Its a pretty common issue for flatpaks to not properly detect your cursor theme and just use the default until you mess around with perms and settings to fix it.

    They also generally get updates slower. I guess maybe if its adopted more that would change but flatpak is already pretty widely used and thats still an issue. Especially for smaller programs not used by as many people.

    Keeping it as just something that is good to use for the ones who like a GUI experience and want something simple and easy is great. But if we were to start doing like what ubuntu does with snaps where theyll just replace things you install with the snap version then im not in favor of that at all.