Skip to contentSkip to conversation

Mouse support for just the wheel and left button.

DISCUSSION John Murphy 3 participants 5 messages Dec 17, 2015

lore
Share & tools
lore
#0 lore raw

Hello and thanks for Grub. I use it daily.

I've seen questions regarding mouse support, but the answers imply that an on-screen pointer is requested. I would find it very useful to be able to use the mouse scroll wheel (which is just two switch clicks if I understand correctly) to move up and down between entries, and one click on the left mouse button to emulate pressing Enter.

All that would seem necessary is for wheel up-button to do up arrow, wheel down-button - down arrow and left-button - Enter.

I have my own reasons for wanting the feature, but, while searching for information, I saw that some users are finding their USB keyboard isn't supported and they may have found simple mouse button and wheel support useful.

It could also help those who usually use on-screen keyboards like the quite excellent OnBoard.

Signature · 1 line
I've joined the list, so no need to CC, thanks.
#1 lore raw

17.12.2015 05:52, John Murphy пишет:

Quoted 2 lines

Hello and thanks for Grub. I use it daily.

You need to boot so often? :)

Quoted 9 lines

I've seen questions regarding mouse support, but the answers imply that an on-screen pointer is requested. I would find it very useful to be able to use the mouse scroll wheel (which is just two switch clicks if I understand correctly) to move up and down between entries, and one click on the left mouse button to emulate pressing Enter.

All that would seem necessary is for wheel up-button to do up arrow, wheel down-button - down arrow and left-button - Enter.

GRUB mostly relies on firmware support. At least for EFI there is no notion of "wheel", only mouse move events. I do not know if mouse can be accessed via BIOS at all.

For tablet type devices using volume up/down and tap may work for menu selection, assuming that modern devices are EFI based.

Quoted 8 lines

I have my own reasons for wanting the feature, but, while searching for information, I saw that some users are finding their USB keyboard isn't supported and they may have found simple mouse button and wheel support useful.

It could also help those who usually use on-screen keyboards like the quite excellent OnBoard.

Someone who has hardware and can actually test it needs to send patches.

#2 lore raw
Quoted 5 lines · Andrei Borzenkov

17.12.2015 05:52, John Murphy пишет:

Quoted 2 lines

Hello and thanks for Grub. I use it daily.

You need to boot so often? :)

Twice today already! :)

Quoted 7 lines
Quoted 7 lines

I've seen questions regarding mouse support, but the answers imply that an on-screen pointer is requested. I would find it very useful to be able to use the mouse scroll wheel (which is just two switch clicks if I understand correctly) to move up and down between entries, and one click on the left mouse button to emulate pressing Enter.

Quoted 7 lines
Quoted 3 lines

All that would seem necessary is for wheel up-button to do up arrow, wheel down-button - down arrow and left-button - Enter.

GRUB mostly relies on firmware support. At least for EFI there is no notion of "wheel", only mouse move events. I do not know if mouse can be accessed via BIOS at all.

I'm able to scroll through entries on pages in my BIOS using the wheel (Asus Maximus VII Formula). Not sure if that means anything.

Quoted 9 lines

For tablet type devices using volume up/down and tap may work for menu selection, assuming that modern devices are EFI based.

Quoted 5 lines

I have my own reasons for wanting the feature, but, while searching for information, I saw that some users are finding their USB keyboard isn't supported and they may have found simple mouse button and wheel support useful.

Quoted 5 lines
Quoted 3 lines

It could also help those who usually use on-screen keyboards like the quite excellent OnBoard.

Someone who has hardware and can actually test it needs to send patches.

Happy to test on mine, but I'd need a few pointers on how to apply a patch. (I've tested kernel patches for a developer, which were committed.)

Signature · 1 line
I've joined the list, so no need to CC, thanks.
#3 lore raw
Quoted 2 lines · John Murphy

I'm able to scroll through entries on pages in my BIOS using the wheel (Asus Maximus VII Formula). Not sure if that means anything.

That probably doesn't mean anything. The firmware can choose to handle the mouse in any way it wants, but the interface actually provided to the boot loader through EFI is more limited.

The UEFI spec mentions x, y and z axis for a pointing device and recommends using z-axis for scrolling, but I don't know if the mouse wheel would be used as a z-axis, or just button 4 and 5 (which uefi doesn't do, only left and right).

Signature · 1 line
Len Sorensen
#4 lore raw
Quoted 4 lines · Lennart Sorensen
Quoted 2 lines · John Murphy

I'm able to scroll through entries on pages in my BIOS using the wheel (Asus Maximus VII Formula). Not sure if that means anything.

Quoted 8 lines

That probably doesn't mean anything. The firmware can choose to handle the mouse in any way it wants, but the interface actually provided to the boot loader through EFI is more limited.

The UEFI spec mentions x, y and z axis for a pointing device and recommends using z-axis for scrolling, but I don't know if the mouse wheel would be used as a z-axis, or just button 4 and 5 (which uefi doesn't do, only left and right).

If 'standards' have carried through from xorg.conf / mousedrv, buttons 4 and 5 would be wheel buttons. Button 4 is the default for "which button must be held down to enable wheel emulation mode." (man mousedrv) but again
- may not mean anything.