Author Topic: X And Window Managers  (Read 20839 times)

ArchiMark

  • Administrator
  • Hero Member
  • *****
  • Posts: 1771
    • View Profile
X And Window Managers
« on: October 26, 2015, 09:34:20 am »
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: [Select]
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.....
Silicon Valley Digerati - * Please see my Mini Laptops For Sale Listing *
Cosmo Communicator / One-Netbook One Mix Yoga 3S (Win 10/Manjaro 18)
Banana Pi Zero UMPC/Armbian
MacBookPro
Sold: C3200/N900/OQO/N5/Dell Mini9/Netwalker/UMID M1/

TheWalt

  • Full Member
  • ***
  • Posts: 176
    • View Profile
X And Window Managers
« Reply #1 on: November 03, 2015, 12:53:51 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

[div class=\'codetop\']CODE[/div][div class=\'codemain\' style=\'height:200px;white-space:pre;overflow:auto\']Section "Device"
        Identifier      "PXA FB"
        Driver          "fbdev"
        Option          "Rotate"  "CW"
EndSection[/div]
2)  It took 22 minutes for XFCE4 to load up, so don't try that

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.
« Last Edit: November 03, 2015, 12:55:48 pm by TheWalt »
- Gemini PDA | WiFi - Android 7.1.1
- GPD Pocket | Ubuntu Mate 18.10
- Zaurus SL-C3100 | ArchLinuxARM

ArchiMark

  • Administrator
  • Hero Member
  • *****
  • Posts: 1771
    • View Profile
X And Window Managers
« Reply #2 on: November 03, 2015, 01:14:26 pm »
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!
« Last Edit: November 03, 2015, 10:42:00 pm by ArchiMark »
Silicon Valley Digerati - * Please see my Mini Laptops For Sale Listing *
Cosmo Communicator / One-Netbook One Mix Yoga 3S (Win 10/Manjaro 18)
Banana Pi Zero UMPC/Armbian
MacBookPro
Sold: C3200/N900/OQO/N5/Dell Mini9/Netwalker/UMID M1/

greguu

  • Global Moderator
  • Sr. Member
  • *****
  • Posts: 393
    • View Profile
    • http://github.com/greguu
X And Window Managers
« Reply #3 on: November 04, 2015, 03:01:50 am »
Quote from: TheWalt
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

[div class=\'codetop\']CODE[/div][div class=\'codemain\' style=\'height:200px;white-space:pre;overflow:auto\']Section "Device"
        Identifier      "PXA FB"
        Driver          "fbdev"
        Option          "Rotate"  "CW"
EndSection[/div]
2)  It took 22 minutes for XFCE4 to load up, so don't try that

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!
Gemini-PDA (Stock Android) / LG Nexus 5 (Sailfish OS) / Nokia N9 (MeeGo/Harmattan)
Sharp Zaurus C3100 (Borzoi) - Void Linux (voidz) Kernel 5.0.0 - Hardware (Buffalo CF LAN, DLink 660 CF WiFi, ASIX AX88772 USB Ethernet)

ArchiMark

  • Administrator
  • Hero Member
  • *****
  • Posts: 1771
    • View Profile
X And Window Managers
« Reply #4 on: November 05, 2015, 12:52:48 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....
Silicon Valley Digerati - * Please see my Mini Laptops For Sale Listing *
Cosmo Communicator / One-Netbook One Mix Yoga 3S (Win 10/Manjaro 18)
Banana Pi Zero UMPC/Armbian
MacBookPro
Sold: C3200/N900/OQO/N5/Dell Mini9/Netwalker/UMID M1/

greguu

  • Global Moderator
  • Sr. Member
  • *****
  • Posts: 393
    • View Profile
    • http://github.com/greguu
X And Window Managers
« Reply #5 on: November 10, 2015, 02:40:06 am »
Quote from: ArchiMark
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
Gemini-PDA (Stock Android) / LG Nexus 5 (Sailfish OS) / Nokia N9 (MeeGo/Harmattan)
Sharp Zaurus C3100 (Borzoi) - Void Linux (voidz) Kernel 5.0.0 - Hardware (Buffalo CF LAN, DLink 660 CF WiFi, ASIX AX88772 USB Ethernet)

ArchiMark

  • Administrator
  • Hero Member
  • *****
  • Posts: 1771
    • View Profile
X And Window Managers
« Reply #6 on: November 10, 2015, 11:30:58 pm »
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....
Silicon Valley Digerati - * Please see my Mini Laptops For Sale Listing *
Cosmo Communicator / One-Netbook One Mix Yoga 3S (Win 10/Manjaro 18)
Banana Pi Zero UMPC/Armbian
MacBookPro
Sold: C3200/N900/OQO/N5/Dell Mini9/Netwalker/UMID M1/

TheWalt

  • Full Member
  • ***
  • Posts: 176
    • View Profile
X And Window Managers
« Reply #7 on: November 13, 2015, 01:25:49 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: [Select]
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.
« Last Edit: November 13, 2015, 02:31:06 pm by TheWalt »
- Gemini PDA | WiFi - Android 7.1.1
- GPD Pocket | Ubuntu Mate 18.10
- Zaurus SL-C3100 | ArchLinuxARM

ArchiMark

  • Administrator
  • Hero Member
  • *****
  • Posts: 1771
    • View Profile
X And Window Managers
« Reply #8 on: November 13, 2015, 10:58:14 pm »
Very cool, Walt!.....

Keep up the good work.....

 

Will do more testing if I get some time......
Silicon Valley Digerati - * Please see my Mini Laptops For Sale Listing *
Cosmo Communicator / One-Netbook One Mix Yoga 3S (Win 10/Manjaro 18)
Banana Pi Zero UMPC/Armbian
MacBookPro
Sold: C3200/N900/OQO/N5/Dell Mini9/Netwalker/UMID M1/

greguu

  • Global Moderator
  • Sr. Member
  • *****
  • Posts: 393
    • View Profile
    • http://github.com/greguu
X And Window Managers
« Reply #9 on: November 18, 2015, 01:32:27 am »
Quote from: TheWalt
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: [Select]
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: [Select]
! '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: [Select]
-149 -4388 16921896 5942 -14 -957028 65536 6 536 36
pointercal-vga:

Code: [Select]
30 -8875 33714080 12031 -32 -2007552 65536
Cheers!
Gemini-PDA (Stock Android) / LG Nexus 5 (Sailfish OS) / Nokia N9 (MeeGo/Harmattan)
Sharp Zaurus C3100 (Borzoi) - Void Linux (voidz) Kernel 5.0.0 - Hardware (Buffalo CF LAN, DLink 660 CF WiFi, ASIX AX88772 USB Ethernet)

danboid

  • Hero Member
  • *****
  • Posts: 881
    • View Profile
    • http://
X And Window Managers
« Reply #10 on: November 23, 2015, 09:04:13 am »
Have you not had chance to try out daal's suggestions yet Archimark?

Let us know how you get on please!
Zaurus SL-C3000 w/ MD swapped for a Kingston 32GB Ultimate 266X CF running ALARM
Banana Pi running ALARM on a WD Scorpio SATA II HD
System76 Gazelle Pro i7 laptop w/ SAMSUNG 840 EVO SSD running Arch x64

How to install Arch on your C3x00 Zaurus https://github.com/danboid/ZALARM-install

ArchiMark

  • Administrator
  • Hero Member
  • *****
  • Posts: 1771
    • View Profile
X And Window Managers
« Reply #11 on: November 23, 2015, 10:52:20 am »
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.....

 
« Last Edit: November 23, 2015, 12:59:38 pm by ArchiMark »
Silicon Valley Digerati - * Please see my Mini Laptops For Sale Listing *
Cosmo Communicator / One-Netbook One Mix Yoga 3S (Win 10/Manjaro 18)
Banana Pi Zero UMPC/Armbian
MacBookPro
Sold: C3200/N900/OQO/N5/Dell Mini9/Netwalker/UMID M1/

ArchiMark

  • Administrator
  • Hero Member
  • *****
  • Posts: 1771
    • View Profile
X And Window Managers
« Reply #12 on: November 23, 2015, 10:49:13 pm »
Tried installing Mate....

Getting error:

Code: [Select]
(  3/35) installing caja
Killed


 

UPDATE

Managed to get caja installed.....

 So, moving forward with Mate install now....
« Last Edit: November 24, 2015, 01:12:27 am by ArchiMark »
Silicon Valley Digerati - * Please see my Mini Laptops For Sale Listing *
Cosmo Communicator / One-Netbook One Mix Yoga 3S (Win 10/Manjaro 18)
Banana Pi Zero UMPC/Armbian
MacBookPro
Sold: C3200/N900/OQO/N5/Dell Mini9/Netwalker/UMID M1/

ArchiMark

  • Administrator
  • Hero Member
  • *****
  • Posts: 1771
    • View Profile
X And Window Managers
« Reply #13 on: November 24, 2015, 03:10:40 pm »
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.......

 

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
« Last Edit: November 24, 2015, 11:33:13 pm by ArchiMark »
Silicon Valley Digerati - * Please see my Mini Laptops For Sale Listing *
Cosmo Communicator / One-Netbook One Mix Yoga 3S (Win 10/Manjaro 18)
Banana Pi Zero UMPC/Armbian
MacBookPro
Sold: C3200/N900/OQO/N5/Dell Mini9/Netwalker/UMID M1/

ArchiMark

  • Administrator
  • Hero Member
  • *****
  • Posts: 1771
    • View Profile
X And Window Managers
« Reply #14 on: November 24, 2015, 05:01:56 pm »
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.....
Silicon Valley Digerati - * Please see my Mini Laptops For Sale Listing *
Cosmo Communicator / One-Netbook One Mix Yoga 3S (Win 10/Manjaro 18)
Banana Pi Zero UMPC/Armbian
MacBookPro
Sold: C3200/N900/OQO/N5/Dell Mini9/Netwalker/UMID M1/