Results 1 to 4 of 4

Thread: Bluetooth mouse persistent properties

  1. #1
    Join Date
    Sep 2020
    Beans
    3

    Bluetooth mouse persistent properties

    I'm using lubuntu:
    Ubuntu 18.04.5 LTS
    Codename: bionic
    ----------------------------------
    I recently purchased a bluetooth mouse and find it difficult to make speed and acceleration persistent.
    I followed the advice given here:
    ----------------------------------------------------------------------------------
    First install xinput
    then
    xinput --list --short
    gives the connected device names.
    This was:
    BM30X mouse
    On my Lenovo T440 laptop I used (in the terminal)
    xinput --set-prop "BM30X mouse" "Coordinate Transformation Matrix" 0.5 0 0 0 0.5 0 0 0 1
    to reduce the speed and acceleration by half.

    This worked but did not persist on reboot so I had to include a script to run at startup.
    ------------------------------------------------------------------------------------
    1. Create file under /home/username/.afterstart.sh

    2. Write down commands to run on start.
    sleep 10
    xinput --set-prop "BM30X mouse" "Coordinate Transformation Matrix" 0.5 0 0 0 0.5 0 0 0 1
    Note: had to add sleep or it didn't work.

    3. Make sure script is executable.

    4. Under path ~/.config/lxsession/Lubuntu/autostart you will find commands which run after the start.
    Edit the file with command
    sudo leafpad ~/.config/lxsession/Lubuntu/autostart

    5. Add there /home/username/.afterstart.sh

    6. Under Start > Preferences > Default application for LXSession you should now see the script

    7. Reboot and see if it works.
    -------------------------------------------------------------------------------------
    That did work but now, if the laptop is inactive for a while and I have to login again the mouse speed and acc have reverted to original (high) values.
    How do I make things persistent so that I don't have to run the script every time I log in?
    Last edited by kino-lb1; September 23rd, 2020 at 10:28 AM. Reason: SOLVED

  2. #2
    Join Date
    Sep 2020
    Beans
    3

    Re: Bluetooth mouse persistent properties

    OK so after more searching online I discovered the solution was to put the script in the ~/.bashrc file.

  3. #3
    Join Date
    Sep 2020
    Beans
    27
    Distro
    Ubuntu

    Re: Bluetooth mouse persistent properties

    .bashrc is launched every time you open the shell. This is not what you would want, right? The best solution is the ubuntu settings app, here you can just change everything you need.

  4. #4
    Join Date
    Sep 2020
    Beans
    3

    Re: Bluetooth mouse persistent properties

    That was the first thing I tried.
    It doesn't work with a bluetooth mouse.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •