Skip to main content

Adjusting screen brightness

The machine on which Linux Mint is installed an old Acer Aspire 5732Z ("Gandalf")

It has buttons to adjust the brightness of the screen's backlight.  When the user uses these buttons, Linux Mint correctly presented a fading-popup box (a slider bar) to denote relative brightness.  But Linux Mint did not actually adjust the brightness of the screen.

It seems to be a known issue in the Linux Mint forums and solved in multiple  stages by the Easy Tips Project.

I followed the instructions on Easy Tips section 5.2 in Gandalf's admin account, then re-booted, then logged in using the user account, and the brightness adjustment function worked correctly.

Easy Tips asks the user to discover the relevant property of the machine, then creates a file that contains a script of parameters that other programs in Linux Mint understand.

This method worked for Gandalf, because Gandalf has an integrated Intel chipset.

Useful commands at the Terminal

ALT+T (or the Mint) menu gets to the Xfce terminal.

inxi -Fxz (source, LMFs), an equivalent of Windows System Information.   Gandalf's current configuration is set out below.

ls, lists a directory.  Equivalent of MS-DOS dir.

lspci, a utility for displaying information about PCI buses in the system and devices connected to them.  I've no idea what the Windows equivalent is.  I've never needed to use it, and this is a sign of the main difference between Windows and Linux Mint.

grep prints (by default to the terminal screen) lines from within a file that match a search pattern on the search string.  Again, I've never needed this in Windows.  (There's a pattern emerging here...).

EasyTips uses these two above commands using a pipe symbol, |.  This seems to work the same way in both Linux and MS-DOS/Windows, i.e. the output of the first command is fed into the second command.  Thus, lspci | grep VGA feeds the entire output of lspci (which is quite long) into grep, and grep presents only those entries which contain "VGA".

sudo, executes the following command as another user.  Linux Mint - actually, I'd guess Ubtunu underneath the Mint interface - then refers to security policy to find (effectively) a user with the right privileges to execute the command.  In a two-user machine - admin user and normal user - sudo should typically pick the admin user.  gksudo runs a graphical user interface equivalent of sudosudo and gksudo can be shortened to su and gksu respectively.

touch changes the file timestamps.  I've never needed to use an equivalent command in Windows, but I have used an equivalent technique (simply open the file in the correct application, adjust, save, undo, save again), typically in the context of testing file sync tools (Google Drive, SyncBack, etc).  Another Linux command rsync appears to form the basis of the Linux equivalent of Syncback, with some graphical front-ends already built as at 2010.

xed is a text editor bundled in with all versions of Linux Mint.  The MS-DOS equivalent is edit.  Windows provides Notepad as the simplest text editor in a graphical user environment;

Sources for the above: Easy Tips.

man (source: can't remember!) invokes the user manual in the terminal screen for other Linux commands, e.g. man man brings up the user manual for the man command (!).  Keystrokes f  (forward), PgDn, ↓, b (back), PgUp, ↑, q (quit) seem to be the most useful.  The MS-DOS equivalent is to use the /? parameter in the command itself.  Thus, dir /? is to MS-DOS what man ls is to Ubuntu Linux Mint.

Output of inxi -Fxz

System:    Host: GANDALF Kernel: 4.10.0-38-generic x86_64 (64 bit gcc: 5.4.0)
           Desktop: Xfce 4.12.3 (Gtk 2.24.28) Distro: Linux Mint 18.3 Sylvia
Machine:   System: Acer (portable) product: Aspire 5732Z v: V3.07
           Mobo: Acer model: Aspire 5732Z v: V3.07
           Bios: Acer v: V3.07 date: 02/10/2010
CPU:       Dual core Pentium T4400 (-MCP-) cache: 1024 KB
           flags: (lm nx sse sse2 sse3 ssse3) bmips: 8777
           clock speeds: max: 2200 MHz 1: 2200 MHz 2: 1200 MHz
Graphics:  Card: Intel Mobile 4 Series Integrated Graphics Controller
           bus-ID: 00:02.0
           Display Server: X.Org 1.18.4 driver: intel
           Resolution: 1366x768@59.97hz
           GLX Renderer: Mesa DRI Mobile Intel GM45 Express
           GLX Version: 2.1 Mesa 17.0.7 Direct Rendering: Yes
Audio:     Card Intel 82801I (ICH9 Family) HD Audio Controller
           driver: snd_hda_intel bus-ID: 00:1b.0
           Sound: Advanced Linux Sound Architecture v: k4.10.0-38-generic
Network:   Card-1: Broadcom BCM43225 802.11b/g/n driver: wl bus-ID: 04:00.0
           IF: wlp4s0 state: up mac: <filter>
           Card-2: Qualcomm Atheros AR8132 Fast Ethernet
           driver: atl1c v: 1.0.1.1-NAPI port: 1000 bus-ID: 05:00.0
           IF: enp5s0 state: down mac: <filter>
Drives:    HDD Total Size: 320.1GB (14.2% used)
           ID-1: /dev/sda model: WDC_WD3200BEVT size: 320.1GB
Partition: ID-1: / size: 291G used: 40G (15%) fs: ext4 dev: /dev/sda1
           ID-2: swap-1 size: 3.15GB used: 0.00GB (0%) fs: swap dev: /dev/dm-0
RAID:      No RAID devices: /proc/mdstat, md_mod kernel module present
Sensors:   System Temperatures: cpu: 47.0C mobo: N/A
           Fan Speeds (in rpm): cpu: N/A
Info:      Processes: 185 Uptime: 18 min Memory: 1787.2/2936.5MB
           Init: systemd runlevel: 5 Gcc sys: 5.4.0
           Client: Shell (bash 4.3.481) inxi: 2.2.35



Comments

Popular posts from this blog

Downgrading of the project: Calc has a fatal bug - it cannot reliably link workbooks

The project is to build a Linux Mint machine to have the identical functionality and ergonomics as the existing Windows 10 machine. This stage relates to on-going work to make LibreOffice Calc workable. Unfortunately, it turns out that LibreOffice isn't fit for purpose.  Specifically, it cannot reliably link workbooks, even in its own native workbooks. As a consequence, the project is now downgraded.  My time is now better spent doing other, more productive things, with a greater chance of success. Background On 29Jul2018, I complied a detailed test using fresh, sample data created specifically for the purpose, in Excel on Windows 10, then had a virtual machine running LibreCalc on Linux Mint to import it. The basic spreadsheet functionality of linked workbooks failed haphazardly. I logged the test results on 29Jul2018 on AskLibreOffice  and, to date, have yet to see any evidence of anybody taking ownership of recognising the issue and thus fixing it. The s...

The Big Bang: Microsoft Windows goes for good, positive adaptations required

On 27Mar2021, Linux Mint ate Microsoft Windows 10 on Legolas. Three months on, I conclude beyond any doubt that wiping out Windows was the best decision I ever made. The second best decision I ever made was to test Linux Mint in Virtual Box five years ago. The third best decision I ever made was to take ownership of the learning curve that migrating in Windows really entails. A quick reminder: what’s Microsoft Windows like nowadays? I still need to use Windows at work. I cannot easily describe how painful it now is to use Windows. So I’ll try to describe it difficultly. My work machine is a powerful beast, but it exhibits constant latency. For a keyboard-orientated power user, this means that some keystrokes go walkabouts when other services on the Windows machine go to nuclear war with each other, scrambling to feed their narcissistic self-importance for besieged system resources wholly at the user’s expense. Something on Windows tends to clear the keyboard buffer randomly, resulting ...

Deployment of Wine

The project is to build a Linux Mint machine to have the identical functionality and ergonomics as the existing Windows 10 machine. Having established that there is no way to migrate fully from Windows to Linux , the project now needs to consider running Windows apps in Linux.   This is a big change to the strategy of the project.   This is a big change to the deployment of a Linux workstation, a crushing admission of failure, and the opening of a whole new world of risks to an otherwise secure operating system. Environment & required functionality For this blog post, Wine was tested on: The Linux Mint Xfce 19 virtual machine " Bilbo ", on host Windows 10 laptop " Saruman " The Linux Mint Xfce 18.3 virtual machine " Gimli ", on host Windows 10 host " Legolas ". Alternatives There are alternatives to Wine/PlayOnLinux, notably the paid software Crossover. Software selection Wine and PlayOnLinux are present in L...