Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

whitespace pressed via x11 keyboards triggers screen rotation #742

Open
norayr opened this issue Aug 1, 2024 · 2 comments
Open

whitespace pressed via x11 keyboards triggers screen rotation #742

norayr opened this issue Aug 1, 2024 · 2 comments

Comments

@norayr
Copy link

norayr commented Aug 1, 2024

so okay, i am using coolkbd (diejuse reported the same with onboard).
that's an onscreen keyboard developed by my friend. he even added maemo docked mode.

his keyboard has 3 modes. it can cover the screen from up, from down, and it is able to resize active window and fit under it (i think he described it as maemo toolbar mode).

this is how it looks, this is the keyboard in the docked mode. i write 'in docked mode'.

2024-08-01T16:08:10_in_

when i press whitespace, screen rotates.

2024-08-01T16:08:32_in_d

2024-08-01T16:09:05_in_docked

then it rotates back next time i press whitespace.

2024-08-01T16:09:20_in_docked_

it happens with all the programs, not only xterm, it happens with dino, and everything which has input field.

maybe important: when i press the upper left corner button to minimize the window and see all applications, and then press 'whitespace' the view of minimized apps disappears, and i see just the screen wallpaper.

before pressing whitespace

2024-08-01T16:14:06_min

after pressing whitespace

2024-08-01T16:14:33_min_

i connected that keyboard to the power button with xbindkeys, so when i press the power button on pinephone, the keyboard appears, then it disappears (gets killed).

 $ cat ~/.xbindkeysrc
# Bind power button to a script
"/home/user/coolkbd/maemo/sw.sh"
    m:0x0 + c:124
 $ cat /home/user/coolkbd/maemo/sw.sh 
#!/bin/bash

set -e
set -x

ROOT="$(cd `dirname "$0"`; pwd)"
cd "$ROOT"

#ST=`pgrep coolkbd`
if ! pgrep -f coolkbd.dock
then
  ./coolkbd.dock
else
  pkill coolkbd.dock
fi

how to build coolkbd.

git clone https://repo.coolbug.org/bw/coolkbd
cd  coolkbd
bash build.sh
cd maemo
bash build.sh

that will create 3 keyboards: coolkbd.top, coolkbd,bottom, coolkbd,dock
the biggest problem is that in landspace mode, if the onscreen keyboard is used/sized comfortably, there is not enough space for the app in the upper part of the screen.

sometimes these modes are useful, but most of the times i use the coolkbd.dock.

so portrait mode is indeed more convenient for using onscreen keyboard. right now our keyboard takes 1/3 of the screen in portrait mode and is very convenient.

using maemo without hardware keyboard (with our maemo keyboard) is practically impossible. and i really want/need to use it with pinephone. with this keyboard it not only becomes usable, we get the experience like we have in most of mobile linux distributions, or like in android or ios.

the problem is that the whitespace triggers hildon screen rotation.

you don't need to do xbindkeys or something.

you can ssh to the phone, and do

cd ~/coolkbd/maemo
DISPLAY=:0  ./coolkbd.dock

and play with it. it also correctly preserves its size when rotating.

@norayr
Copy link
Author

norayr commented Aug 1, 2024

as it is seen on the screenshots, orientation lock applet is used, i tried to lock orientation in portrait, and still it rotates.

i also was able to check that

 $ gconftool-2 --get /apps/osso/hildon-desktop/ui_can_rotate
false
 $ gconftool-2 --get /apps/osso/hildon-desktop/orientation_lock
true

@norayr
Copy link
Author

norayr commented Aug 1, 2024

so i removed hidlon-input-method from xsession

mv Xsession.post/25hildon-input-method-configurator /root

and now whitespace works with my keyboard.

// suggested by arno11

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant