OESF Portal | OESF Forum | OESF Wiki | LinuxPDA | #planetgemini chat on matrix.org | #gemini-pda chat on Freenode | #zaurus and #alarmz chat on Freenode | ELSI (coming soon) | Ibiblio

IPB

Welcome Guest ( Log In | Register )

4 Pages V   1 2 3 > »   
Reply to this topicStart new topic
> X And Window Managers
ArchiMark
post Oct 26 2015, 05:34 AM
Post #1





Group: Admin
Posts: 1,649
Joined: 25-June 03
From: Silicon Valley
Member No.: 208



X and Window Manager

Just got X running and twm....

But like Dan, twm is opening up sideways.....need to rotate display 90 degrees....

Assumed I need to put something like:

CODE
xrandr -o right



in xinitrc file, but it still opens up sideways....

So, either there's more too it or need to put in different location or ........

Just tried fluxbox and it opens up sideways too.....
Go to the top of the page
 
+Quote Post
TheWalt
post Nov 3 2015, 09:53 AM
Post #2





Group: Members
Posts: 178
Joined: 11-August 05
Member No.: 7,836



Ok started to mess with this and learned 2 things.

1) You can get the screen to rotate by adding the following file and content as follows:

/usr/share/X11/xorg.conf.d/90-rotate.conf

CODE
Section "Device"
Identifier "PXA FB"
Driver "fbdev"
Option "Rotate" "CW"
EndSection

2) It took 22 minutes for XFCE4 to load up, so don't try that biggrin.gif

The screen refresh is dog slow as predicted, so work still to be done. Oh, also the touch screen doesn't match up, you can't get to any edges.
Go to the top of the page
 
+Quote Post
ArchiMark
post Nov 3 2015, 10:14 AM
Post #3





Group: Admin
Posts: 1,649
Joined: 25-June 03
From: Silicon Valley
Member No.: 208



U 'da Man, Walt!!!!

This is a great step towards getting X and WM working...

XFCE4 is nice....but given our lil' Z's think something lighter like fluxbox, etc, will perform much better...

I'll give X another try later...

What X related files did you install? (ie, Xorg, xinit, xf86-.....)

Thanks!
Go to the top of the page
 
+Quote Post
greguu
post Nov 4 2015, 12:01 AM
Post #4





Group: Moderators
Posts: 374
Joined: 14-November 05
From: New Zealand
Member No.: 8,535



QUOTE(TheWalt @ Nov 3 2015, 06:53 PM) *
Ok started to mess with this and learned 2 things.

1) You can get the screen to rotate by adding the following file and content as follows:

/usr/share/X11/xorg.conf.d/90-rotate.conf

CODE
Section "Device"
Identifier "PXA FB"
Driver "fbdev"
Option "Rotate" "CW"
EndSection

2) It took 22 minutes for XFCE4 to load up, so don't try that biggrin.gif

The screen refresh is dog slow as predicted, so work still to be done. Oh, also the touch screen doesn't match up, you can't get to any edges.


Hi TheWalt,

Thanks for testing Arch on your Zaurus.

I would suggest to use a minimal window manager, like dwm or maybe fluxbox. Xfce is overkill on the Z.

Cheers!
Go to the top of the page
 
+Quote Post
ArchiMark
post Nov 4 2015, 09:52 PM
Post #5





Group: Admin
Posts: 1,649
Joined: 25-June 03
From: Silicon Valley
Member No.: 208



Got TWM running.....needs a little work on the keymap....but works......

Also, will be great if we can get touchscreen calibration....

Have tried opening some programs from terminal running in TWM, but no go so far....

Tried fluxbox and got it to open....but right now just has bar at the bottom and didn't get it to open with terminal. So, couldn't do anything. Touchscreen calibration was not too bad, off by about 1/4" or 1cm roughly....
Go to the top of the page
 
+Quote Post
greguu
post Nov 9 2015, 11:40 PM
Post #6





Group: Moderators
Posts: 374
Joined: 14-November 05
From: New Zealand
Member No.: 8,535



QUOTE(ArchiMark @ Nov 5 2015, 06:52 AM) *
Got TWM running.....needs a little work on the keymap....but works......

Also, will be great if we can get touchscreen calibration....

Have tried opening some programs from terminal running in TWM, but no go so far....

Tried fluxbox and got it to open....but right now just has bar at the bottom and didn't get it to open with terminal. So, couldn't do anything. Touchscreen calibration was not too bad, off by about 1/4" or 1cm roughly....


I have not looked into calibration of the touchscreen. It may be possible. A look into some OE rootfs that includes Xorg may give some hints.. but this is just a guess.

The most lightweight WM I would consider is dwm, it is really small, simple to use with the keyboard only and does a good job. Used it under Debian on the Z.

At the moment there is no intention to focus on getting X to run proper on the Z under ALARM.

Apps that run in pure console or under FBDEV with SDL, pure Frambuffer or with DirectFB would be less memory hungry, less dependencies and probably "faster" .

Getting Chrome, Firefox or LibreOffice running on your Z is just not going to work smile.gif
Go to the top of the page
 
+Quote Post
ArchiMark
post Nov 10 2015, 08:30 PM
Post #7





Group: Admin
Posts: 1,649
Joined: 25-June 03
From: Silicon Valley
Member No.: 208



Understand your points and Z limitations, daalnroti....

Had no thoughts of running LibreOffice, Firefox, etc.....

But some lightweight browser (relatively speaking...) like midori and being able to run a few light X apps would be nice too....

It would be great to be able to calibrate touchscreen too as it can be very helpful to navigate and click buttons.

So, not thinking grandiose, but would be very helpful to have a simple X apps running properly....

But again, understand that this is not your or danboid's focus....
Go to the top of the page
 
+Quote Post
TheWalt
post Nov 13 2015, 10:25 AM
Post #8





Group: Members
Posts: 178
Joined: 11-August 05
Member No.: 7,836



Messing around some today I installed the MATE desktop which although slow works pretty well. Keymap is all wrong and touchscreen is still off of course but it looks nice.

https://wiki.archlinux.org/index.php/MATE

I tried following these steps to calibrate the touch screen with no luck. In fact I ended up calculating the exact same settings as what comes default.

https://wiki.archlinux.org/index.php/Calibrating_Touchscreen

UPDATE: I obviously do not have the right numbers for the formula but after some random trial and error this gets REAL close. If maybe we can get the right info this can be corrected properly. Just run this in terminal after X is open to test.

CODE
xinput set-prop "ADS7846 Touchscreen" --type=float "Coordinate Transformation Matrix" 1.2 0 -.0625 0 1.18 -.0834 0 0 1


My hope was to find the settings in a working debain or bsd install but debian seems to use a TSLIB that is not available in arch for its calibrations.
Go to the top of the page
 
+Quote Post
ArchiMark
post Nov 13 2015, 07:58 PM
Post #9





Group: Admin
Posts: 1,649
Joined: 25-June 03
From: Silicon Valley
Member No.: 208



Very cool, Walt!.....

Keep up the good work.....

smile.gif

Will do more testing if I get some time......
Go to the top of the page
 
+Quote Post
greguu
post Nov 17 2015, 10:32 PM
Post #10





Group: Moderators
Posts: 374
Joined: 14-November 05
From: New Zealand
Member No.: 8,535



QUOTE(TheWalt @ Nov 13 2015, 07:25 PM) *
Messing around some today I installed the MATE desktop which although slow works pretty well. Keymap is all wrong and touchscreen is still off of course but it looks nice.

https://wiki.archlinux.org/index.php/MATE

I tried following these steps to calibrate the touch screen with no luck. In fact I ended up calculating the exact same settings as what comes default.

https://wiki.archlinux.org/index.php/Calibrating_Touchscreen

UPDATE: I obviously do not have the right numbers for the formula but after some random trial and error this gets REAL close. If maybe we can get the right info this can be corrected properly. Just run this in terminal after X is open to test.

CODE
xinput set-prop "ADS7846 Touchscreen" --type=float "Coordinate Transformation Matrix" 1.2 0 -.0625 0 1.18 -.0834 0 0 1


My hope was to find the settings in a working debain or bsd install but debian seems to use a TSLIB that is not available in arch for its calibrations.



Keymap : Have a look at this borzoi xmodmap_us file that I copied of pdaxrom. Not sure it does work with Xorg but it may be a start.

CODE
! 'Fn' key setup for c700
!

clear Mod1
clear Mod2
clear Mod3
clear Mod4
clear Mod5

keycode 10 = 1 exclam     F1 F1
keycode 11 = 2 quotedbl   F2 F2
keycode 12 = 3 numbersign F3 F3
keycode 13 = 4 dollar     F4 F4
keycode 14 = 5 percent    F5 F5
keycode 15 = 6 ampersand  F6 F6
keycode 16 = 7 apostrophe F7 F7
keycode 17 = 8 parenleft  F8 F8
keycode 18 = 9 parenright F9 F9
keycode 19 = 0 asciitilde F10 F10

keycode 24 = q Q aring Aring
keycode 25 = w W asciicircum asciicircum
keycode 26 = e E equal equal
keycode 27 = r R plus plus
keycode 28 = t T bracketleft bracketleft
keycode 29 = y Y bracketright bracketright
keycode 30 = u U braceleft braceleft
keycode 31 = i I braceright braceright
keycode 32 = o O oslash Ooblique
keycode 33 = p P sterling

keycode 38 = a A ae AE
keycode 39 = s S EuroSign
keycode 40 = d D grave grave
keycode 41 = f F backslash backslash
keycode 42 = g G semicolon semicolon
keycode 43 = h H colon colon
keycode 44 = j J asterisk asterisk
keycode 45 = k K yen
keycode 46 = l L bar bar

keycode 50 = Shift_L

keycode 52 = z Z
keycode 53 = x X
keycode 54 = c C
keycode 55 = v V
keycode 56 = b B underscore underscore
keycode 57 = n N
keycode 58 = m M

!keycode 105 = grave grave
keycode 20 = minus underscore at at
keycode 59 = slash comma less less
keycode 60 = period question greater greater

keycode 69  = Mode_switch

! Cursor
keycode 198  = Up    Up    Prior Prior
keycode 111  = Up    Up    Prior Prior
keycode 116  = Down  Down  Next  Next
keycode 204  = Down  Down  Next  Next
keycode 113  = Left  Left  Home  Home
keycode 200  = Left  Left  Home  Home
keycode 114  = Right Right End   End
keycode 201  = Right Right End   End

keycode 22  = BackSpace BackSpace Delete Delete

! pdaXrom silkscreen
keycode 87 = XF86Launch0
!House

keycode 89 = XF86Launch1
!Mail

keycode 84 = XF86Launch2
!People

keycode 79 = XF86Launch3
!List

keycode 81 = XF86Launch4
!Book

! R-Shift
keycode 62 = Shift_R

! Menu
!keycode 96 = XF86Start
!keycode 67 = XF86LaunchA
!keycode 68 = XF86LaunchB
!keycode 76 = XF86LaunchC
!keycode 107 = XF86LaunchD

! side buttons

!keycode 117 = XF86PowerDown
keycode 71 = Return
keycode 95 = Return
keycode 72 = Escape
keycode 70 = Escape

! CE-RH1 Remote

!keycode 104 = XF86AudioRaiseVolume
!keycode 105 = XF86AudioLowerVolume
!keycode 106 = XF86AudioNext
!keycode 107 = XF86AudioPrev
!keycode 108 = XF86AudioStop
!keycode 109 = XF86AudioPlay

! This is the screen swivel sensor

! keycode 110 = XF86RotateWindows

clear Lock
! remove Lock = Tab
keycode 23 = Tab Tab Caps_Lock Caps_Lock
! add Lock = Caps_Lock

add mod1    = Alt_L Alt_L Alt_L
add mod2    = Mode_switch


tslib could be compiled but then you may need to compile X against it. If we find a way to get the touchscreen calibrated without tslib, that would be awesome.

I think I still have some tslib calibration files for VGA and QVGA somewhere, maybe these coordinates are similar to what the xinput parameters are, this might help.

pointercal-qvga :

CODE
-149 -4388 16921896 5942 -14 -957028 65536 6 536 36


pointercal-vga:

CODE
30 -8875 33714080 12031 -32 -2007552 65536


Cheers!
Go to the top of the page
 
+Quote Post
danboid
post Nov 23 2015, 06:04 AM
Post #11





Group: Members
Posts: 881
Joined: 26-December 05
From: England
Member No.: 8,789



Have you not had chance to try out daal's suggestions yet Archimark?

Let us know how you get on please!
Go to the top of the page
 
+Quote Post
ArchiMark
post Nov 23 2015, 07:52 AM
Post #12





Group: Admin
Posts: 1,649
Joined: 25-June 03
From: Silicon Valley
Member No.: 208



Not yet, danboid.....

Was very busy at work the past week or so....

but should have some time this week....with holiday time here later this week....

Maybe Walt can give it a try too.....

smile.gif
Go to the top of the page
 
+Quote Post
ArchiMark
post Nov 23 2015, 07:49 PM
Post #13





Group: Admin
Posts: 1,649
Joined: 25-June 03
From: Silicon Valley
Member No.: 208



Tried installing Mate....

Getting error:

CODE
(  3/35) installing caja
Killed



blink.gif

UPDATE

Managed to get caja installed.....

So, moving forward with Mate install now....
Go to the top of the page
 
+Quote Post
ArchiMark
post Nov 24 2015, 12:10 PM
Post #14





Group: Admin
Posts: 1,649
Joined: 25-June 03
From: Silicon Valley
Member No.: 208



Some progress.....

Got Mate installed and after about 10 minutes it was fully opened and running.....Yeah!.....

Bad thing like you say is that calibration is off, so, I can't quite get the cursor arrow to reach the top of screen to open the menus......

Haven't been able to find a way to use keyboard to open menu either, have tried various keys and key combos....so, can't open terminal to use and quit Mate......

Is there a way to access menus using keys?

Tried using Fn + Left & Right Arrow to get back to console, but no go.......

blink.gif

Maybe we need to think about lighter display manager like fluxbox or ?

UPDATE

Finally, found a key combo that got me back to a login in console......

Ctl + Alt + Fn + 1

This post has been edited by ArchiMark: Nov 24 2015, 08:33 PM
Reason for edit: Added comment about other display manager
Go to the top of the page
 
+Quote Post
ArchiMark
post Nov 24 2015, 02:01 PM
Post #15





Group: Admin
Posts: 1,649
Joined: 25-June 03
From: Silicon Valley
Member No.: 208



After getting back to console with new login (tty3).....

Tried to xinput set-prop as noted in Walt's post above....

Got message something like : Cannot connect to X server.....
Go to the top of the page
 
+Quote Post

4 Pages V   1 2 3 > » 
Reply to this topicStart new topic
2 User(s) are reading this topic (2 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 17th November 2019 - 06:37 PM