-
Doing things from the virtual terminal on the X screen
I think I may have figured out how to do things from the virtual terminals to affect the X screen.
The vt for X is 6 so we can do:
chvt 6 to switch to the virtual terminal 6
Next we need to have a little delay, so let's add sleep 4 (you can also use 2 if you think that's a bit faster)
We also need to add "export DISPLAY=:0" to set the X display.
Then to change the user, we use "sudo -u knoppix "
So to do xrandr and change the resolution: (this is pretty useful when you mess around with screen resolutions that cause a blank screen)
Hit CTRL+ALT+F4 to switch to VT 4: then type
chvt 6; sleep 4; export DISPLAY=:0; sudo -u knoppix xrandr
chvt 6; sleep 4; export DISPLAY=:0; sudo -u knoppix xrandr --output HDMI-1 --mode 800x600
To launch terminator:
chvt 6; sleep 4; export DISPLAY=:0; sudo -u knoppix terminator &
To open the main menu:
chvt 6; sleep 4; export DISPLAY=:0; sudo -u knoppix lxpanelctl menu
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
Lenovo ThinkPad X1 Carbon Laptop Core i5 14" 8GB RAM 256GB SSD Windows 10 HDMI
$189.09
Lenovo ThinkPad V14 14" Laptop Ryzen 7 4700U 6-Core 8GB RAM 250GB SSD Windows 11
$250.00
Lenovo ThinkPad E15 G2, AMD Ryzen 5, 16GB RAM, 512GB SSD, no OS, 20T8S0P800
$210.00
Lenovo - IdeaPad 3i Chromebook 15.6" FHD Laptop - Intel Celeron - 4GB Memory ...
$119.00
LENOVO THINKPAD T490S I7-8665U 1.9ghz 16 GB Ram 512GB SSD 14" Windows 11 Pro
$169.99
Lenovo Thinkpad L13 Yoga G2 13" Touchscreen Core i5-1145G7 16GB 256GB SSD W10P
$299.99
Lenovo - LOQ 15.6" Gaming Laptop FHD - AMD Ryzen 5 7235HS with 12GB Memory - ...
$799.99
Lenovo Thinkpad L14 G3 14" Touch Laptop Ryzen 5 PRO 5675U 16GB 512GB SSD W11H
$329.99
Lenovo Desktop i5 Computer Mini Pc Up To 32GB RAM 1TB SSD Windows 10 Pro Wi-Fi
$220.78
Lenovo ThinkPad 14" Laptop PC Computer Core i5 16GB RAM 256GB SSD Windows 10
$170.88