Logitech unifying receiver monitoring

While going through Fedora’s Tagger, I came across a package called Solaar, a Linux device manager for Logitech’s Unifying Receiver.

I thought “Well, this could be pretty useful” because until the little lights on my MX Master mouse start flashing red, I never know the charge status of the mouse.

Installing the package with dnf install solaar gave me a taskbar icon, but for some reason it didn’t find any devices to manage. After poking around in the Solaar installation documentation, it looked like my problem was that the Fedora package didn’t install the udev rules that allow non-root access to the Logitech Unifying Receiver.

Once I added the rules file and a new user group, Solaar was able to find the MX Master and show me its status.

Working pretty well so far, and it’s nice being able to see the charge status of my mouse. Doesn’t let me configure buttons or change DPI settings, but maybe that’s something I can convince solaar to do.

~/workspace> solaar show
Unifying Receiver
  Device path  : /dev/hidraw4
  USB id       : 046d:c52b
  Serial       : 89629F0B
    Firmware   : 12.03.B0025
    Bootloader : 02.15
    Other      : AA.AA
  Has 1 paired device(s) out of a maximum of 6.
  Notifications: wireless, software present (0x000900)
  Device activity counters: 1=130

  1: Wireless Mouse MX Master
     Codename     : MX Master
     Kind         : mouse
     Wireless PID : 4041
     Protocol     : HID++ 4.5
     Polling rate : 8 ms (125Hz)
     Serial number: 756A9A32
        Bootloader: BOT 18.01.B0014
          Firmware: MPM 11.02.B0014
          Firmware: MPM 11.02.B0014
             Other:
     The power switch is located on the base.
     Supports 29 HID++ 2.0 features:
         0: ROOT                   {0000}
         1: FEATURE SET            {0001}
         2: DEVICE FW VERSION      {0003}
         3: DEVICE NAME            {0005}
         4: WIRELESS DEVICE STATUS {1D4B}
         5: RESET                  {0020}
         6: BATTERY STATUS         {1000}
         7: CHANGE HOST            {1814}
         8: REPROG CONTROLS V4     {1B04}
         9: ADJUSTABLE DPI         {2201}
        10: VERTICAL SCROLLING     {2100}
        11: SMART SHIFT            {2110}
        12: HIRES WHEEL            {2121}
        13: GESTURE 2              {6501}
        14: DFUCONTROL 2           {00C1}
        15: unknown:1813           {1813}   internal, hidden
        16: unknown:1830           {1830}   internal, hidden
        17: unknown:1890           {1890}   internal, hidden
        18: unknown:18A1           {18A1}   internal, hidden
        19: unknown:18C0           {18C0}   internal, hidden
        20: unknown:1DF3           {1DF3}   internal, hidden
        21: unknown:1E00           {1E00}   hidden
        22: unknown:1EB0           {1EB0}   internal, hidden
        23: unknown:1803           {1803}   internal, hidden
        24: unknown:1861           {1861}   internal, hidden
        25: unknown:9000           {9000}   internal, hidden
        26: unknown:9200           {9200}   internal, hidden
        27: unknown:9240           {9240}   internal, hidden
        28: unknown:1805           {1805}   internal, hidden
     Battery: 50%, discharging.

Update: Ended up running into some issues with the taskbar icon reverting back to not detecting any devices. This is apparently a known issue, so I cloned the Solaar repo and pulled in some of the PRs that are supposed to address the issue. Copied the files to where they were installed on the system (/usr/lib/python2.7/site-packages/) and restarted the app. Solaar picked up the mouse, and even some options for configuring the mouse, including DPI control. Woot! So far, no more problems with Solaar suddenly forgetting the mouse.

New mouse options
New mouse options

Phantom volume

The TV started doing this strange thing where the volume would turn down all by itself. Even after turning the volume back up, it would go back down again all by itself. TV works fine after several hours of watching, but then the volume on-screen display (OSD) will pop up randomly and sometimes the volume will change. After a while, the volume OSD pops up with increasing frequency, and the volume drops more and more until eventually it’s doing it all the time.

Ruled out the remote sending out random signals to the TV. Even took the batteries out to guarantee the remote wasn’t doing anything.

The control buttons on the side of the TV are capacitive touch buttons, so I thought maybe those had gone screwy. Opened up  the TV and disconnected the control buttons, but it ended up having no effect. Still ended up with the same behaviour after a few hours of the TV being on.

TV innards
TV innards
TV power supply board
TV power supply board
TV control board
TV control board

At this point, I figure the problem is probably something heat related since the phantom volume changes don’t start happening until the TV’s been on a while. I’m not sure where else to go digging for the problem.

Looks like replacement control boards can be obtained from various sources for not a whole lot of money (definitely less than replacing the TV). Swapping out the control board would probably take care of the problem, unless of course the problem lies elsewhere.

Reflashing the wifi router

The wifi router (a TP-Link Archer C2600) started to  have some issues with wifi dropping out and I noticed there was a new firmware available for it, so I decided it was time to give it a reset and flash the new firmware while I was at it.

It’s normally a straight forward process, but somehow the router had gotten itself into a state where any login attempts ended up returning a 500 Internal Server Error, even after doing a factory reset on it. Didn’t matter what browser I tried to log in with.

Without a way to get into the router’s interface, I thought I was going to have to get a new one, which would have been disappointing because the C2600 had been working pretty well, and wasn’t all that old.

The next thing I considered was flashing OpenWRT or LEDE to the router. After a bit of poking around in the documentation, and a suggestion from someone in one of the Slacks I hang out in, I learned that firmware could be installed via tftp. This turned out to be a fairly straight forward procedure and not too difficult to set up.

If you don’t have tftp already installed on the computer, the instructions here are pretty good.

  1. Connect the C2600 (turned off) to the computer with an ethernet cable.
  2. Manually configure the IP address of your computer to 192.168.0.66
  3. Extract the factory firmware for the C2600 and rename it to ArcherC2600_1.0_tp_recovery.bin. Copy the file to /var/lib/tftpboot/
  4. While holding the reset button down, turn the router on. Keep the reset button pressed for about 15 seconds. This should put the router into recovery mode.
  5. Wait for the firmware to be transferred to the router. You might see some messages show up in /var/log/messages indicating the transfer has occurred.
  6. Wait about 5 minutes and power cycle the router.

With any luck, the router will come back to life with the firmware installed and everything should be honky-dory. If not, try again. Once you’ve got the firmware flashed, you can disable the tftp server and close up the firewall port.

The C2600 is back in service and seems to be working fine again. I can log into the router again, and there haven’t been any problems with the wifi dropping out.

Getting Lucky

Sometimes you come across some interesting novelty books. Some selected excerpts from Luck: The Essential Guide.

An empty hornet’s nest, hung high, is a good-luck charm for the whole family.

An occupied one, probably not so much.

The cardinal rule for the New Year’s meal in Sicily is this: good luck comes only to those who eat lasagna. Those who eat fettuccine, macaroni, fusilli, tagliatelle, or any other pasta do so at their own risk

This is a tradition I could get used to.

When in Rome: Stay away from nuns. If a nun can’t be avoided, touch iron (knocking on wood Italian-style) immediately after seeing one to preserve good fortune. You can also do as the Italians do and mutter “Your nun!” to the next person you see, passing the nun (and therefore the bad luck) to someone else.

When in Japan: Pay attention to the first person you meet each morning. If it’s a woman, you’ll have good luck, but if it’s a Buddhist priest, you’re in for a bad day.

I wonder what it is with religious figures…

Try selling  your health problem to a friend. Offer to give her a good deal – say, a buck fifty – on your tendonitis. Some believe that the evil spirits that control the illness will get confused as to who should actually have it and the problem will go away.

Those spirits are pretty gullible. T2 diabetes anyone? I can give you a great deal.