UBports Robot Logo UBports Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login
    1. Home
    2. Linus67
    3. Topics
    Offline
    • Profile
    • Following 2
    • Followers 1
    • Topics 4
    • Posts 54
    • Groups 0

    Topics

    • Linus67L

      Is there a terminal command to disable the mobile data connection?

      Watching Ignoring Scheduled Pinned Locked Moved Solved Support
      6
      0 Votes
      6 Posts
      119 Views
      Linus67L
      @gpatel-fr That´s perfect! Thank you very much for solving this stubborn problem. Now I can put the Pixel 3a into ‘Nokia 3210 mode’ with a single click. Calls and text messages work, and the battery lasts at least three days in this mode. #!/bin/bash # ==================================================================== # NOKIA 3210 MODUS: CPU throttling + All offline services (Pixel 3a) # ==================================================================== if [ "$EUID" -ne 0 ]; then echo "ERROR: Please run the script using: sudo $0" exit 1 fi echo "Enable Nokia 3210 mode..." # 1. Force CPU cores into power-saving mode for governor in /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor; do if [ -f "$governor" ]; then echo "powersave" > "$governor" fi done echo "[✓] CPU throttling enabled." # 2. Turn off Wi-Fi nmcli radio wifi off echo "[✓] Wi-Fi disabled." # 3. Turn off location tracking (GPS) sudo dbus-send --system --type=method_call --print-reply --dest=com.lomiri.location.Service /com/lomiri/location/Service org.freedesktop.DBus.Properties.Set string:com.lomiri.location.Service string:IsOnline variant:boolean:false echo "[✓] Location tracking disabled." # 4. Turn off Bluetooth rfkill block bluetooth echo "[✓] Bluetooth disabled." # 5. Turn off mobile data sudo -u phablet DBUS_SESSION_BUS_ADDRESS="unix:path=/run/user/32011/bus" dbus-send --session --type=method_call --print-reply --dest=com.lomiri.connectivity1 /com/lomiri/connectivity1/Private org.freedesktop.DBus.Properties.Set string:com.lomiri.connectivity1.Private string:MobileDataEnabled variant:boolean:false echo "[✓] Mobile data disabled." # 6. Greenline-Service stop at user level XDG_RUNTIME_DIR=/run/user/32011 sudo -u phablet systemctl --user stop greenline.service 2>/dev/null echo "[✓] greenline.service stopped." echo "------------------------------------------------" echo "Success! CPU, wireless modules and GPS are in sleep mode." sleep 3
    • Linus67L

      Powersave mode extrem

      Watching Ignoring Scheduled Pinned Locked Moved Unsolved Support
      25
      1
      2 Votes
      25 Posts
      538 Views
      Linus67L
      @Moem After clearing the saved Wi-Fi connections, power consumption is minimal. [image: 1779434595907-8f6aae21-1785-4f50-8c3a-e94f2ba0bb02-image.jpeg]
    • Linus67L

      Take back control of your data!

      Watching Ignoring Scheduled Pinned Locked Moved Off topic
      3
      1
      0 Votes
      3 Posts
      359 Views
      Linus67L
      @OtaDr Those are some interesting alternatives, too! I’ll have to give them a try (when the weather’s bad).
    • Linus67L

      Bluetooth Verbindung mit car audio

      Watching Ignoring Scheduled Pinned Locked Moved German / Deutsch
      7
      0 Votes
      7 Posts
      510 Views
      K
      @Linus67 Freut mich, dass es geklappt hat