Difference between revisions of "Linux Mint"

From Organic Design wiki
(USB 3G modem stopped working after moving to Mint)
m (USB 3G modem stopped working after moving to Mint)
Line 33: Line 33:
  
 
First, ensure that you have the ''12d1:1446'' file available in the ''/usr/share/usb_modeswitch/'' directory, and extract it from the ''configPack.tar.gz'' file in the same location if you don't have it.
 
First, ensure that you have the ''12d1:1446'' file available in the ''/usr/share/usb_modeswitch/'' directory, and extract it from the ''configPack.tar.gz'' file in the same location if you don't have it.
 +
<source>
 +
cd /usr/share/usb_modeswitch/
 +
tar -zxf configPack.tar.gz 12d1:1446
 +
</source>
 +
  
 
Check ''dmesg'' after you insert the device to check what CD-ROM device it's being seen as and eject that device, for example I have the following outpushown in ''dmesg'' after inserting the device:
 
Check ''dmesg'' after you insert the device to check what CD-ROM device it's being seen as and eject that device, for example I have the following outpushown in ''dmesg'' after inserting the device:
Line 48: Line 53:
 
eject /dev/sr0
 
eject /dev/sr0
 
</source>
 
</source>
 +
  
 
Finally, run the ''usb_modeswitch'' command to initialise the device, and then if you don't see the device appear in the menu after a few seconds, try restarting the network manager, you might also try removing and in-inserting the device if still no luck, but you shouldn't need to do any of the above commands again.
 
Finally, run the ''usb_modeswitch'' command to initialise the device, and then if you don't see the device appear in the menu after a few seconds, try restarting the network manager, you might also try removing and in-inserting the device if still no luck, but you shouldn't need to do any of the above commands again.

Revision as of 23:05, 3 October 2017

LinuxMintLogo.png

Linux Mint is a free operating system using the Linux kernel, but most of the basic OS tools come from the GNU project; hence the name GNU/Linux. At Organic Design we install Linux Mint on our workstations and have been using it since early 2014. We changed to Linux Mint mainly due to the fact that they're very up to date with their choice of Linux kernel version which allowed me to use my touch-screen on my Samsung ATIV Smart PC Pro (XE700T1C) and fixed a long-standing bug on Beth's Lenovo Ideapad S10-3 which prevented it from resuming from standby, but we've found it to be a very nice distro and will continue using it as our choice of OS for our workstation machines.

Why's the mouse so fast!

The desktop applet doesn't allow you to slow the most speed down enough for some models of mice. I found a good solution here which I've copied below.

First find the name of your mouse device with xinput -list which will produce something like this (I've highlighted my mouse):

⎡ Virtual core pointer                id=2    [master pointer  (3)]
⎜   ↳ Virtual core XTEST pointer      id=4    [slave  pointer  (2)]
⎜   ↳ GASIA USB KB V11                id=10   [slave  pointer  (2)]
⎜   ↳ Logitech Optical USB Mouse      id=11   [slave  pointer  (2)]
⎜   ↳ Wacom ISDv4 EC Pen stylus       id=12   [slave  pointer  (2)]
⎜   ↳ Atmel Atmel maXTouch Digitizer  id=13   [slave  pointer  (2)]
⎜   ↳ Wacom ISDv4 EC Pen eraser       id=17   [slave  pointer  (2)]
⎣ Virtual core keyboard               id=3    [master keyboard (2)]
    ↳ Virtual core XTEST keyboard     id=5    [slave  keyboard (3)]
    ↳ Power Button                    id=6    [slave  keyboard (3)]
    ↳ Video Bus                       id=7    [slave  keyboard (3)]
    ↳ Power Button                    id=8    [slave  keyboard (3)]
    ↳ GASIA USB KB V11                id=9    [slave  keyboard (3)]
    ↳ WebCam SC-50AFL11C54N           id=14   [slave  keyboard (3)]
    ↳ WebCam SC-20HDM12347N           id=15   [slave  keyboard (3)]
    ↳ AT Translated Set 2 keyboard    id=16   [slave  keyboard (3)]

You can then adjust the speed using the name from the list as follows (the higher the number, the slower it goes):

xinput -set-prop "Logitech Optical USB Mouse" "Device Accel Constant Deceleration" 5

USB 3G modem stopped working after moving to Mint

This same modem used to work fine on Ubuntu, but for some reason it would not show any response on Mint even though internally it uses the same version of Ubuntu. This seems to be a very common problem, especially for Huawei 12d1:1446 devices. I have got it working, but I'm not sure which things are required yet. I've done these things.

First, ensure that you have the 12d1:1446 file available in the /usr/share/usb_modeswitch/ directory, and extract it from the configPack.tar.gz file in the same location if you don't have it.

cd /usr/share/usb_modeswitch/
tar -zxf configPack.tar.gz 12d1:1446


Check dmesg after you insert the device to check what CD-ROM device it's being seen as and eject that device, for example I have the following outpushown in dmesg after inserting the device:

[  396.158650] scsi 6:0:0:0: CD-ROM            HUAWEI   Mass Storage     2.31 PQ: 0 ANSI: 2
[  396.158683] scsi 7:0:0:0: Direct-Access     HUAWEI   SD Storage       2.31 PQ: 0 ANSI: 2
[  396.160556] sd 7:0:0:0: Attached scsi generic sg1 type 0
[  396.163984] sd 7:0:0:0: [sdb] Attached SCSI removable disk
[  396.164126] sr 6:0:0:0: [sr0] scsi-1 drive
[  396.164452] sr 6:0:0:0: Attached scsi CD-ROM sr0
[  396.164687] sr 6:0:0:0: Attached scsi generic sg2 type 5

So I can then eject that device using the following command:

eject /dev/sr0


Finally, run the usb_modeswitch command to initialise the device, and then if you don't see the device appear in the menu after a few seconds, try restarting the network manager, you might also try removing and in-inserting the device if still no luck, but you shouldn't need to do any of the above commands again.

usb_modeswitch -v 12d1 -p 1446 -J
sudo service network-manager restart

Brightness stopped working after installing Mint 18

After I installed Mint 18.1 the brightness keys stopped working - none of the applets or command-line brightness tools such as xbacklight worked either.

I found an old post here by Ryo Cook from 2013 which is still relevant now. Edit your /etc/default/grub file and add the following acpi parameters to the GRUB_CMDLINE_LINUX_DEFAULT setting as follows:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi_osi=Linux acpi_backlight=vendor"

Then run sudo update-grub and restart the system, all backlight tools should then be working again!

Notes

  • The suspend/resume events on 18.1 are in /lib/systemd/system-sleep/ with param equal to pre and post

See also