12-14-2012, 04:50 AM | #196 | ||
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
|
wmctrl -r "xterm" -b toggle fullscreen
(or is it called "kterm"?) whatever it is called use that. try above, below, etc... this isn't a total solution but might at least get you started. EDIT: ah the link https://www.mobileread.com/forums/sho...d.php?t=194270 Quote:
Quote:
|
||
12-14-2012, 05:47 AM | #197 | |
Evangelist
Posts: 404
Karma: 2200000
Join Date: May 2012
Device: kt
|
Quote:
What does whole windows stack look like? Code:
xwininfo -root -children |
|
Advert | |
|
12-14-2012, 05:59 AM | #198 |
Evangelist
Posts: 404
Karma: 2200000
Join Date: May 2012
Device: kt
|
Try also with previous version of xterm, before I added rotation support. I remember it was causing some problems, like keyboard hiding under terminal window.
It is here. Check with both the old matchbox-keyboard binary and the new one I posted above. |
12-14-2012, 01:35 PM | #199 | |
Junior Member
Posts: 8
Karma: 15842
Join Date: Dec 2012
Device: Kindle Paperwhite
|
Okay, here we go:
It kinda worked. Both terminal and keyboard are visible, but terminal doesn't get any input. Quote:
Posting the whole window stack (using current version of xterm, not 0.6): Code:
[root@kindle bin]# xwininfo -root -children xwininfo: Window id: 0x51 (the root window) (has no name) Root window id: 0x51 (the root window) (has no name) Parent window id: 0x0 (none) 26 children: 0x180000d "L:A_N:application_ID:XTerm_PC:N_O:URL": ("kterm" "XTerm") 758x1024+0+0 +0+0 MapState=IsViewable 0x1600257 "L:D_N:application_ID:matchbox-keyboard": () 758x341+0+683 +0+683 MapState=IsViewable 0x120001a "L:A_N:application_ID:com.lab126.booklet.home_M:false_PC:TS_RC:true_O:U": () 758x899+0+125 +0+125 MapState=IsViewable 0xe00003 "L:A_N:application_ID:blankBackground_WS:true": ("pillowd" "Pillowd") 758x1024+0+0 +0+0 MapState=IsViewable 0xe0005b "L:C_N:titleBar_ID:system": ("pillowd" "Pillowd") 758x37+0+0 +0+0 MapState=IsViewable 0xe00045 "L:C_N:searchBar_ID:system_SBTH:88_SBPH:88_TAP:search-bar_CMS~E:ss,cr": ("pillowd" "Pillowd") 758x88+0+37 +0+37 MapState=IsViewable 0x1000003 "L:KB_N:keyboard_DMINSETRIGHT:5_DM:KB_DMINSETLEFT:5_KBS:H_DMINSETTOP:54_LanH:352_PorH:352_DMINSETBOTTOM:5": ("kb" "Kb") 758x352+0+672 +0+672 MapState=IsViewable 0x120037f "L:D_N:non-centered_ID:com.lab126.booklet.home_M:dismissible_RD:false_FH:F_CD:true_TAC:search-bar_TAB:menu_RC:false_HIDE:background_BS:true": () 393x538+355+122 +355+122 MapState=IsViewable 0xe00042 "L:D_N:lightDialog_ID:system_PILLOW:light-dialog_M:dismissible_CD:true_TAC:search-bar_TAB:light_HIDE:background": ("pillowd" "Pillowd") 473x632+250+122 +250+122 MapState=IsViewable 0xe0003f "L:D_N:pillowAlert_ID:system_PILLOW:simple-alert_M:true_BW:4_HIDE:background": ("pillowd" "Pillowd") 569x311+90+350 +90+350 MapState=IsViewable 0x140000d "xterm": ("xterm" "XTerm") 484x316+0+0 +0+0 MapState=IsViewable 0xc0003c "webreader": ("webreader" "Webreader") 1024x1024+0+0 +0+0 MapState=IsViewable 0xc00021 "webreader": ("webreader" "Webreader") 200x200+0+0 +0+0 MapState=IsViewable 0xe00048 "L:D_N:searchResults_ID:system_PILLOW:search-results_RC:custom_RCTL:0_RCTR:0_RCBL:16_RCBR:16_BW:2_FH:S_FS:S_CD:true_HIDE:background": ("pillowd" "Pillowd") 200x493+0+0 +0+0 MapState=IsViewable 0xe00033 "L:D_N:systemMenu_ID:system_PILLOW:system-menu_BW:0_M:dismissible_CD:true_HIDE:background_TAC:search-bar_TAB:menu": ("pillowd" "Pillowd") 323x126+0+0 +0+0 MapState=IsViewable 0x40001c "L:SS_N:screenSaver_FH:F_ID:blanket-screensaver_FS:F_O:U": () 758x1024+0+0 +0+0 MapState=IsUnMapped 0x120007b "L:A_N:application_ID:com.lab126.booklet.reader_M:false_PC:N_RC:true_O:URL_DM:N_S:-2": () 758x1024+0+0 +0+0 MapState=IsUnMapped 0x12000a6 "L:A_N:application_ID:com.lab126.booklet.settings_M:false_PC:TS_RC:true_O:U": () 758x899+0+125 +0+125 MapState=IsUnMapped 0xc00004 "webreader": ("webreader" "Webreader") 200x200+0+0 +0+0 MapState=IsUnMapped 0xc00001 "webreader": ("webreader" "Webreader") 10x10+10+10 +10+10 MapState=IsUnMapped 0xe00070 "pillowd": () 10x10+-100+-100 +-100+-100 MapState=IsUnMapped 0xe00016 "pillowd": ("pillowd" "Pillowd") 200x200+0+0 +0+0 MapState=IsUnMapped 0x1000001 "kb": ("kb" "Kb") 10x10+10+10 +10+10 MapState=IsUnMapped 0xe00001 "pillowd": ("pillowd" "Pillowd") 10x10+10+10 +10+10 MapState=IsUnMapped 0x600001 (has no name): () 1x1+-1+-1 +-1+-1 MapState=IsUnMapped 0x600000 (has no name): () 1x1+-1+-1 +-1+-1 MapState=IsUnMapped |
|
12-15-2012, 12:46 AM | #200 |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
|
would be more help as...
xwininfo -tree -root -children or even just xwininfo -tree -root IIRC there was some issue with focus that baf had handled via the inbuilt layer logic. I had to fiddle around initially to get the input I expected when not using bafs methods. Good luck Last edited by twobob; 12-15-2012 at 12:49 AM. |
Advert | |
|
12-15-2012, 01:58 AM | #201 | |
Junior Member
Posts: 8
Karma: 15842
Join Date: Dec 2012
Device: Kindle Paperwhite
|
Quote:
Code:
[root@kindle bin]# xwininfo -root -tree xwininfo: Window id: 0x51 (the root window) (has no name) Root window id: 0x51 (the root window) (has no name) Parent window id: 0x0 (none) 26 children: 0x180000d "L:A_N:application_ID:XTerm_PC:N_O:URL": ("kterm" "XTerm") 758x1024+0+0 +0+0 MapState=IsViewable 1 child: 0x1800011 (has no name): () 758x1024+0+0 +0+0 MapState=IsViewable 0x1600257 "L:D_N:application_ID:matchbox-keyboard": () 758x341+0+683 +0+683 MapState=IsViewable 0x120001a "L:A_N:application_ID:com.lab126.booklet.home_M:false_PC:TS_RC:true_O:U": () 758x899+0+125 +0+125 MapState=IsViewable 0xe00003 "L:A_N:application_ID:blankBackground_WS:true": ("pillowd" "Pillowd") 758x1024+0+0 +0+0 MapState=IsViewable 1 child: 0xe00004 (has no name): () 1x1+-1+-1 +-1+-1 MapState=IsViewable 0xe0005b "L:C_N:titleBar_ID:system": ("pillowd" "Pillowd") 758x37+0+0 +0+0 MapState=IsViewable 1 child: 0xe0005c (has no name): () 1x1+-1+-1 +-1+-1 MapState=IsViewable 0xe00045 "L:C_N:searchBar_ID:system_SBTH:88_SBPH:88_TAP:search-bar_CMS~E:ss,cr": ("pillowd" "Pillowd") 758x88+0+37 +0+37 MapState=IsViewable 1 child: 0xe00046 (has no name): () 1x1+-1+-1 +-1+36 MapState=IsViewable 0x1000003 "L:KB_N:keyboard_DMINSETRIGHT:5_DM:KB_DMINSETLEFT:5_KBS:H_DMINSETTOP:54_LanH:352_PorH:352_DMINSETBOTTOM:5": ("kb" "Kb") 758x352+0+672 +0+672 MapState=IsViewable 1 child: 0x1000004 (has no name): () 1x1+-1+-1 +-1+671 MapState=IsViewable 0x120037f "L:D_N:non-centered_ID:com.lab126.booklet.home_M:dismissible_RD:false_FH:F_CD:true_TAC:search-bar_TAB:menu_RC:false_HIDE:background_BS:true": () 393x538+355+122 +355+122 MapState=IsViewable 0xe00042 "L:D_N:lightDialog_ID:system_PILLOW:light-dialog_M:dismissible_CD:true_TAC:search-bar_TAB:light_HIDE:background": ("pillowd" "Pillowd") 473x632+250+122 +250+122 MapState=IsViewable 1 child: 0xe00043 (has no name): () 1x1+-1+-1 +249+121 MapState=IsViewable 0xe0003f "L:D_N:pillowAlert_ID:system_PILLOW:simple-alert_M:true_BW:4_HIDE:background": ("pillowd" "Pillowd") 569x311+90+350 +90+350 MapState=IsViewable 1 child: 0xe00040 (has no name): () 1x1+-1+-1 +93+353 MapState=IsViewable 0x140000d "xterm": ("xterm" "XTerm") 484x316+0+0 +0+0 MapState=IsViewable 1 child: 0x1400012 (has no name): () 484x316+0+0 +1+1 MapState=IsViewable 0xc0003c "webreader": ("webreader" "Webreader") 1024x1024+0+0 +0+0 MapState=IsViewable 1 child: 0xc0003d (has no name): () 1x1+-1+-1 +-1+-1 MapState=IsViewable 0xc00021 "webreader": ("webreader" "Webreader") 200x200+0+0 +0+0 MapState=IsViewable 1 child: 0xc00022 (has no name): () 1x1+-1+-1 +-1+-1 MapState=IsViewable 0xe00048 "L:D_N:searchResults_ID:system_PILLOW:search-results_RC:custom_RCTL:0_RCTR:0_RCBL:16_RCBR:16_BW:2_FH:S_FS:S_CD:true_HIDE:background": ("pillowd" "Pillowd") 200x493+0+0 +0+0 MapState=IsViewable 1 child: 0xe00049 (has no name): () 1x1+-1+-1 +1+1 MapState=IsViewable 0xe00033 "L:D_N:systemMenu_ID:system_PILLOW:system-menu_BW:0_M:dismissible_CD:true_HIDE:background_TAC:search-bar_TAB:menu": ("pillowd" "Pillowd") 323x126+0+0 +0+0 MapState=IsViewable 1 child: 0xe00034 (has no name): () 1x1+-1+-1 +-1+-1 MapState=IsViewable 0x40001c "L:SS_N:screenSaver_FH:F_ID:blanket-screensaver_FS:F_O:U": () 758x1024+0+0 +0+0 MapState=IsUnMapped 0x120007b "L:A_N:application_ID:com.lab126.booklet.reader_M:false_PC:N_RC:true_O:URL_DM:N_S:-2": () 758x1024+0+0 +0+0 MapState=IsUnMapped 0x12000a6 "L:A_N:application_ID:com.lab126.booklet.settings_M:false_PC:TS_RC:true_O:U": () 758x899+0+125 +0+125 MapState=IsUnMapped 0xc00004 "webreader": ("webreader" "Webreader") 200x200+0+0 +0+0 MapState=IsUnMapped 1 child: 0xc00005 (has no name): () 1x1+-1+-1 +-1+-1 MapState=IsUnviewable 0xc00001 "webreader": ("webreader" "Webreader") 10x10+10+10 +10+10 MapState=IsUnMapped 1 child: 0xc00002 (has no name): () 1x1+-1+-1 +9+9 MapState=IsUnviewable 0xe00070 "pillowd": () 10x10+-100+-100 +-100+-100 MapState=IsUnMapped 0xe00016 "pillowd": ("pillowd" "Pillowd") 200x200+0+0 +0+0 MapState=IsUnMapped 1 child: 0xe00017 (has no name): () 1x1+-1+-1 +-1+-1 MapState=IsUnviewable 0x1000001 "kb": ("kb" "Kb") 10x10+10+10 +10+10 MapState=IsUnMapped 1 child: 0x1000002 (has no name): () 1x1+-1+-1 +9+9 MapState=IsUnviewable 0xe00001 "pillowd": ("pillowd" "Pillowd") 10x10+10+10 +10+10 MapState=IsUnMapped 1 child: 0xe00002 (has no name): () 1x1+-1+-1 +9+9 MapState=IsUnviewable 0x600001 (has no name): () 1x1+-1+-1 +-1+-1 MapState=IsUnMapped 0x600000 (has no name): () 1x1+-1+-1 +-1+-1 MapState=IsUnMapped |
|
12-15-2012, 07:11 AM | #202 | |
Evangelist
Posts: 404
Karma: 2200000
Join Date: May 2012
Device: kt
|
Quote:
And why doesn't xterm grab all input? I see a lot of new arguments in window title scheme. I will have to study it. |
|
12-16-2012, 09:47 PM | #203 |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
|
I set what now?
You know. its funny but I just managed to do exactly the same thing on the touch.
for some reason a window named xwininfo: Window id: 0x1400002 "L:A_N:application_ID:xgnuboy_PC:N" Does not display topmost without forcing via wmctrl. and it also does not receive input from the keyboard. odd. perhaps there is some element that is not being set in code correctly. I currently have this: Code:
void vid_settitle(char *title)
{
// XStoreName(x_display, x_win, title);
XStoreName(x_display, x_win, "L:A_N:application_ID:xgnuboy_PC:N");
XSetIconName(x_display, x_win, "L:A_N:application_ID:xgnuboy_PC:N");
}
any thoughts : ) EDIT: I shoved it in a tidy Code:
snprintf(buf, sizeof buf, "%s%s", "L:D_N:application_ID:", rom.name); http://h30097.www3.hp.com/docs/base_...UP/XWINSYS.PDF Section 9_9 Spoiler:
Looks right to me. Erm. Any clues? Last edited by twobob; 12-16-2012 at 10:50 PM. Reason: full explanation |
12-17-2012, 11:32 AM | #204 |
Evangelist
Posts: 404
Karma: 2200000
Join Date: May 2012
Device: kt
|
Your function is ok, but it is important WHEN you call it. You should call it while creating new window. If you call it too late, after window has been put to a proper layer by wm, nothing will happen. Unless you notify wm of the change of title, with wmctrl for example.
|
12-17-2012, 11:56 AM | #205 |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
|
okay. I will see about shifting it from the loader phase then maybe.
That said I have noticed that many of the sound issues appear to go away when running via Xephyr... perhaps I will just stick to that road. Thanks mate! At least I didn't screw up the code. |
12-23-2012, 09:03 AM | #206 |
Connoisseur
Posts: 56
Karma: 40393
Join Date: May 2012
Device: Kindle Touch
|
I've tried to compile xterm but it got:
Code:
[SB2 simple arm] test@test-test xterm-279 $ make gcc -I. -I. -DHAVE_CONFIG_H -D_GNU_SOURCE -DNARROWPROTO=1 -DFUNCPROTO=15 -DOSMAJORVERSION=3 -DOSMINORVERSION=2 -g -O2 -c ./button.c In file included from ./button.c:62:0: ./xterm.h:66:21: fatal error: X11/Xos.h: No such file or directory compilation terminated. make: *** [button.o] Error 1 |
12-24-2012, 01:22 AM | #207 |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
|
and do you have that file?
i.e is it the referencing or do you just not have it... |
12-24-2012, 06:49 AM | #208 |
Connoisseur
Posts: 56
Karma: 40393
Join Date: May 2012
Device: Kindle Touch
|
I don't have it. I use KT /{lib,etc,usr} as root filesystem then sb2 ./configure, but it seems KT missing library to compile xterm. But KT still can run Xterm
|
12-24-2012, 07:49 AM | #209 | |
Going Viral
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Quote:
Ah, the beauty of the posix dynamic library naming. Hint: You might look that up - a little new knowledge wouldn't hurt. There are two naming systems, one for the build-time library name(s) and one for the run-time library name. They often end up at the same library binary - it is the naming systems that differ for those two different purposes. The build-time name(s) is used by the linker and the names include version information in the name string itself. This name chain starts with the base name and leads to the most specific version of the library present. (at least it does when it is present.) The run-time name is used by the loader and the version information is in the symbol table, per symbol. Embedded Operating Systems are supposed to be small and light. Embedded Linux is. Kindles run embedded Linux. Small, run-time, OS installations are not intended to be program creation environments. Are you really surprised that the Kindles do not ship with the build-time name chains? Knowledge is power, back up and create a complete build environment based on the library files that do ship with the Kindles. Only then try to build something. |
|
12-25-2012, 08:19 PM | #210 |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
|
right. I use the buildroot pkg config stuff for my libs (the ones I cant/dont build myself) its referenced in the soundkloud thread in the last few posts how I do it.
thats for gtk but I imagine the principle is broadly similar. use the right headers / libs for the right tool chains. I have noted how I do mine. (whether that is right? I dont know - it works) good luck. |
Tags |
launcher add-ons |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[Progress] Jailbreaking Kindle 4.0 (Touch/No Keyboard) | yifanlu | Kindle Developer's Corner | 434 | 04-22-2016 10:29 AM |
Battery life in kindle keyboard an kindle non touch. | ersott | Amazon Kindle | 24 | 10-30-2013 04:33 AM |
[Kindle Touch] Touch-screen keyboard demo | JoppyFurr | Kindle Developer's Corner | 6 | 05-19-2012 11:04 AM |
Kindle Touch add new keyboard | Novas | Kindle Developer's Corner | 2 | 01-12-2012 08:29 AM |
Matchbox Keyboard Update | Grimulkan | iRex | 17 | 05-13-2009 04:24 PM |