So i have a hp probook x360 and it has a key with a light for wireless connection. It just disables all connections and turns on an orange light. I don't use this and it being one of the only keys to have a light indicator just seems like a waste.
I found the driver to that button from hp but i don't have any knowledge on how to change it for my needs like for mic muted or not. Is there a way of doing this?
I found this that could help but i tried to control the capslock led and it had no effect
edit: i got capslock working but i don't know how to find what code corresponds to the light of the wireless button. i tried a loop to test out every number but i haven't gotten the right one
I have a convertible laptop for which there isn't great Linux support: the desktop environment is unable to detect when the device is in tablet mode, so the keyboard and touchpad are always active, which makes tablet mode almost useless. I've solved this problem by writing a simple Python script that grabs the keyboard and mouse input devices and proxies events to the system until a specific key sequence is received. At this point, it stops proxying events until the same key sequence is seen again.
The code is effectively a slightly more complex version of this example (which reproduces the problem):
import evdev
import selectors
dev = evdev.InputDevice('/dev/input/event5')
ui = evdev.UInput.from_device(dev)
dev.grab()
selector = selectors.DefaultSelector()
selector.register(dev, selectors.EVENT_READ)
while True:
for key, mask in selector.select(0.1):
dev = key.fileobj
for event in dev.read():
cat = evdev.categorize(event)
print(cat)
ui.write_event(event)
/dev/input/event5 is the touchpad. The system has the following devices:
Available devices:
/dev/input/event0: Lid Switch
/dev/input/event1: Power Button
/dev/input/event2: Sleep Button
/dev/input/event3: Power Button
/dev/input/event4: AT Translated Set 2 keyboard
/dev/input/event5: SynPS/2 Synaptics TouchPad
/dev/input/event6: Wacom HID 5072 Pen
/dev/input/event7: Wacom HID 5072 Finger
/dev/input/event8: HDA Intel PCH Mic
/dev/input/event9: HDA Intel PCH Headphone
/dev/input/event10: HDA Intel PCH HDMI/DP,pcm=3
/dev/input/event11: PC Speaker
/dev/input/event12: ThinkPad Extra Buttons
/dev/input/event13: Integrated Camera: Integrated C
/dev/input/event14: Video Bus
When this code runs, movements and regular click actions work just fine, but a two-fingered click, which normally acts like a right-button click, no longer works. Since this code is just taking events and re-sending them, why is this behavior different? How would I get the two-fingered click to work as expected?
I think what you need is very similar to this, altered of course to your needs
Python_Touchscreen_RightClick.py
if this doesn't work for you you can also try and use Gesture Event from python-libinput
Update: the problem has fixed itself. It must have happened with an update of xrandr, Xorg, nvidia or intel gpu drivers, or anything else related, but it works fine again! It wasn't my fault after all...
My laptop has a 4K (3840x2160) screen (dual gpu, nvidia-prime) and sometimes I want to connect my Full HD TV on the HDMI port to watch a video. I prefer the TV not to mirror my 4K screen.
So I start arandr and enable the HDMI input.
On my previous installation of this laptop (Linux Arch), my 4K screen then became limited to 1920x1080, so 3/4 of the screen was unusable, even if not mirrored, but I would then just use mirror to watch the video which was limited to the 1/4 of the 4K screen, being the complete TV.
On my new installation of this laptop (again, Linux Arch), my desktop seems to resize to 5760x2160, which make the TV only show the upper half of the screen, and showing videos incorrectly because the video application thinks my screen is 1920x2160.
So none of the situations were exactly what I wanted.
I want it to work like it would work in Windows (or like my Arch installation on my desktop pc where I have a full HD screen on the left and a 1:1 2K screen on the right, it works perfectly fine there): one 4K screen on the left, one Full HD screen on the right, mouse can't pass the lower part of the screen from left to right, so the desktop is 3840x2160 on the left, 1920x1080 on the right, and the right screen has the same upper edge so the mouse stays on top when I go to the right screen.
As I am trying to automate this, I would like this to work with xrandr (I've already written an udev script which works), but even with xrandr, I don't seem to be able to set the parameters correctly.
I've tried so many things, but I seem to misunderstand the options or something, because whatever I try, it's not working as I expect it.
The simplest thing I tried was just: xrandr --output HDMI-1-0 --auto --right-of eDP-1 --mode 1920x1080 --pos 3840x0. I've tried to add --fb 1920x1080. It doesn't seem to work.
Can anyone help me understand it, maybe even help me configure it?
Edit: I don't know if it's important, but I use i3.
Edit: If I change the resolution of the 4K screen to 1920x1080, mirroring works perfectly. That's the only usable way, but it's still not what I want.
Edit: this is so strange, I just did xrandr --output eDP-1 --auto --output HDMI-1-0 --auto --right-of eDP-1 and my tv now shows an empty desktop, but my mouse is limited to the 4K screen and when I'm in the upper left area, the mouse shows up on the TV also... so it feels like the TV shows a part right of the 4K screen, but the mouse is on the left top part.
Edit: another thing I tried doesn't work: xrandr --output eDP-1 --mode 3840x2160 --fb 3840x2160 --output HDMI-1-0 --mode 1920x1080 --fb 1920x1080 --right-of eDP-1 xrandr: specified screen 1920x1080 not large enough for output eDP-1 (3840x2160+0+0) xrandr: specified screen 1920x1080 not large enough for output HDMI-1-0 (1920x1080+3840+0)
Have you tried tools like arandr ? They help you configure this kind of things visually, with menus and drop-down lists for various parameters.
Link: https://christian.amsuess.com/tools/arandr/
In arandr you can save layout as a simple sh script (Layout->Save As or blue icon). Make it executable (chmod +x) and run like any other script.
The problem has solved itself with updates, be it in xrandr, Xorg, nvidia, intel, ...
The same xrandr commands that didn't work then, work perfectly fine now.
Goal/Challenge:
i have a challenge to create a custom controller without using special controllers e.g. raspberry pi or Arduino.
What i have done so far:
I have created a custom board that takes power from the red wire and outputs power via the coloured strip depending on what buttons the user has pressed. 1= on, 0 = off, 9 outputs, 1 power input
my problem:
i am trying to connect this board to my pc via usb.
I have seen that some chips can be used to do this but, i have no idea of what to use or how to connect them.
Help/Info i need:
what could i use to connect my button board to pc(windows 10) via usb?
Extra:
i don't know if i'm posting this in the right place or i'm using the right tags.
please suggest any changes i need to make
If you just want to make a custom button board the easiest way is to buy some buttons e.g arcade buttons und a zero delay usb encoder.
Plugs into pc via usb and work like any controller.. you can set the desired functions for each button via windows itself.
I've a Firefox OS 1.3 on ZTE Open C device. By mistake, I selected the wrong debug option and now I can't use my phone normally: I have an orange box (surrounding elements) that I can move only by sliding to the right the center of the screen.
Do someone know how I can get to the configuration panel and remove this?
I rebooted the phone, even removed the battery, but the option is still here.
I figured out that this is the Screen Reader mode. And there are instructions here.
But in my 1.3 version, the up-down-up-down-up-down doesn't work. Neither the swipe with two fingers...