Skip to contentSkip to conversation

grub2 and touch screen

DISCUSSION Theodore Christophe 4 participants 8 messages Jun 24, 2015 – Jun 27, 2015

lore
Share & tools
lore
#0 lore raw

hello all,

First of all, thank-you for your works.

I have installed Fedora21 on my laptop (Medion all in one) with dual boot, and every-thing is working fine. Grub2 give me the choice between win8.1 and FC21, and other rescue.

BUT when I use my laptop as touch pad (by removing the screen), with no keyboard, I could not select the boot I want to use. Fedora is the default and the touch screen is working fine after.

Do you think that grub can manage the touch screen (something like two button win81 and FC21) ?

Thank you for your attention,
Christophe

#1 lore raw

doesn't your device have any buttons(volume?) without the keyboad? That would be way easier then adding touchscreen support especially if UEFI doesn't provide a API for that(which I guess it doesn't).

Quoted 23 lines · Theodore Christophe

hello all,

First of all, thank-you for your works.

I have installed Fedora21 on my laptop (Medion all in one) with dual boot, and every-thing is working fine.
Grub2 give me the choice between win8.1 and FC21, and other rescue.

BUT when I use my laptop as touch pad (by removing the screen), with no keyboard, I could not select the boot I want to use. Fedora is the default and the touch screen is working fine after.

Do you think that grub can manage the touch screen (something like two button win81 and FC21) ?

Thank you for your attention,
Christophe

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

#2 lore raw

В Wed, 24 Jun 2015 20:15:23 +0200
Michael Zimmermann <[email protected]> пишет:

Quoted 4 lines

doesn't your device have any buttons(volume?) without the keyboad? That would be way easier then adding touchscreen support especially if UEFI doesn't provide a API for that(which I guess it doesn't).

Actually UEFI defines both relative and absolute pointer protocols. Writing driver for it would be interesting project (not sure of GSoC is still relevant, related pages on grub web site were not updated for years; I also do not know who is responsible for content).

Quoted 26 lines
Quoted 23 lines · Theodore Christophe

hello all,

First of all, thank-you for your works.

I have installed Fedora21 on my laptop (Medion all in one) with dual boot, and every-thing is working fine.
Grub2 give me the choice between win8.1 and FC21, and other rescue.

BUT when I use my laptop as touch pad (by removing the screen), with no keyboard, I could not select the boot I want to use. Fedora is the default and the touch screen is working fine after.

Do you think that grub can manage the touch screen (something like two button win81 and FC21) ?

Thank you for your attention,
Christophe

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

#3 lore raw

if this is the case it should actually by kinda easy.
You may want to take a look at this project to get an idea of how to implement the UI part of this:
https://bitbucket.org/byteit101/grub-mouse.git

Quoted 44 lines · Andrei Borzenkov

В Wed, 24 Jun 2015 20:15:23 +0200
Michael Zimmermann <[email protected]> пишет:

Quoted 2 lines

doesn't your device have any buttons(volume?) without the keyboad? That would be way easier then adding touchscreen support especially if

UEFI

Quoted 2 lines

doesn't provide a API for that(which I guess it doesn't).

Actually UEFI defines both relative and absolute pointer protocols. Writing driver for it would be interesting project (not sure of GSoC is still relevant, related pages on grub web site were not updated for years; I also do not know who is responsible for content).

Quoted 8 lines
Quoted 5 lines · Theodore Christophe

hello all,

First of all, thank-you for your works.

I have installed Fedora21 on my laptop (Medion all in one) with dual

boot,

Quoted 5 lines
Quoted 5 lines

and every-thing is working fine.
Grub2 give me the choice between win8.1 and FC21, and other rescue.

BUT when I use my laptop as touch pad (by removing the screen), with no keyboard, I could not select the boot I want to use. Fedora is the

default

Quoted 13 lines
Quoted 13 lines

and the touch screen is working fine after.

Do you think that grub can manage the touch screen (something like two button win81 and FC21) ?

Thank you for your attention,
Christophe

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

#4 lore raw

В Sat, 27 Jun 2015 14:26:24 +0200
Michael Zimmermann <[email protected]> пишет:

Quoted 5 lines

if this is the case it should actually by kinda easy.
You may want to take a look at this project to get an idea of how to implement the UI part of this:
https://bitbucket.org/byteit101/grub-mouse.git

It emulates key up/down on mouse movement which does not fit well into touch screen/tablet design. I'd rather prefer generic framework to associate screen coordinates with GUI elements and define "click events", so that both relative and absolute modes could be used.

Quoted 47 lines
Quoted 44 lines · Andrei Borzenkov

В Wed, 24 Jun 2015 20:15:23 +0200
Michael Zimmermann <[email protected]> пишет:

Quoted 2 lines

doesn't your device have any buttons(volume?) without the keyboad? That would be way easier then adding touchscreen support especially if

UEFI

Quoted 2 lines

doesn't provide a API for that(which I guess it doesn't).

Actually UEFI defines both relative and absolute pointer protocols. Writing driver for it would be interesting project (not sure of GSoC is still relevant, related pages on grub web site were not updated for years; I also do not know who is responsible for content).

Quoted 8 lines
Quoted 5 lines · Theodore Christophe

hello all,

First of all, thank-you for your works.

I have installed Fedora21 on my laptop (Medion all in one) with dual

boot,

Quoted 5 lines
Quoted 5 lines

and every-thing is working fine.
Grub2 give me the choice between win8.1 and FC21, and other rescue.

BUT when I use my laptop as touch pad (by removing the screen), with no keyboard, I could not select the boot I want to use. Fedora is the

default

Quoted 13 lines
Quoted 13 lines

and the touch screen is working fine after.

Do you think that grub can manage the touch screen (something like two button win81 and FC21) ?

Thank you for your attention,
Christophe

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

#5 lore raw
In reply to Theodore Christophe

В Wed, 24 Jun 2015 14:06:42 +0200
Theodore Christophe <[email protected]> пишет:

Quoted 8 lines

hello all,

First of all, thank-you for your works.

I have installed Fedora21 on my laptop (Medion all in one) with dual boot, and every-thing is working fine.
Grub2 give me the choice between win8.1 and FC21, and other rescue.

Quoted 7 lines

BUT when I use my laptop as touch pad (by removing the screen), with no keyboard, I could not select the boot I want to use. Fedora is the default and the touch screen is working fine after.

Do you think that grub can manage the touch screen (something like two button win81 and FC21) ?

Somebody would need to write driver for it (assuming it is technically possible in firmware at all). I think I have seen reports that using hardware buttons worked for selecting menu entries, but it may be hardware dependent.

As Michael, I think adding support for hardware buttons looks more promising.

#6 lore raw
Quoted 19 lines · Andrei Borzenkov

В Wed, 24 Jun 2015 14:06:42 +0200
Theodore Christophe <[email protected]> пишет:

Quoted 8 lines

hello all,

First of all, thank-you for your works.

I have installed Fedora21 on my laptop (Medion all in one) with dual boot, and every-thing is working fine.
Grub2 give me the choice between win8.1 and FC21, and other rescue.

Quoted 7 lines

BUT when I use my laptop as touch pad (by removing the screen), with no keyboard, I could not select the boot I want to use. Fedora is the default and the touch screen is working fine after.

Do you think that grub can manage the touch screen (something like two button win81 and FC21) ?

Quoted 7 lines

Somebody would need to write driver for it (assuming it is technically possible in firmware at all). I think I have seen reports that using hardware buttons worked for selecting menu entries, but it may be hardware dependent.

As Michael, I think adding support for hardware buttons looks more promising.

How does grub currently support the hardware buttons?

On Asus T300 Chi, the EFI boot menu reads volume + and - buttons as up and down, while windows button function as "enter". However grub reads volume + as "enter" as well, so I only have volume - (down) for moving between menu entries.

Signature · 1 line
Fajar
#7 lore raw

В Fri, 26 Jun 2015 15:27:35 +0700
"Fajar A. Nugraha" <[email protected]> пишет:

Quoted 25 lines · Andrei Borzenkov
Quoted 24 lines

В Wed, 24 Jun 2015 14:06:42 +0200
Theodore Christophe <[email protected]> пишет:

Quoted 8 lines

hello all,

First of all, thank-you for your works.

I have installed Fedora21 on my laptop (Medion all in one) with dual boot, and every-thing is working fine.
Grub2 give me the choice between win8.1 and FC21, and other rescue.

Quoted 7 lines

BUT when I use my laptop as touch pad (by removing the screen), with no keyboard, I could not select the boot I want to use. Fedora is the default and the touch screen is working fine after.

Do you think that grub can manage the touch screen (something like two button win81 and FC21) ?

Somebody would need to write driver for it (assuming it is technically possible in firmware at all). I think I have seen reports that using hardware buttons worked for selecting menu entries, but it may be hardware dependent.

Quoted 6 lines
Quoted 2 lines

As Michael, I think adding support for hardware buttons looks more promising.

How does grub currently support the hardware buttons?

It does not, in the sense there is no explicit code to do it I'm aware of. It just relies on EFI to return character (key stroke).

Quoted 5 lines

On Asus T300 Chi, the EFI boot menu reads volume + and - buttons as up and down, while windows button function as "enter". However grub reads volume + as "enter" as well, so I only have volume - (down) for moving between menu entries.

To debug it access to hardware is needed, which is why it is quite hard to fix such things. If you are willing to debug it, file bug report on savannah, we'll need to dump read keystroke information to find out what you hardware returns. I do not see anything in grub code that would account for it at the first glance.