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

ArchiMark

  • Administrator
  • Hero Member
  • *****
  • Posts: 1771
    • View Profile
X And Window Managers
« Reply #15 on: November 25, 2015, 01:53:53 pm »
Just tried to have Mate open with terminal open....by doing the following in .xinitrc file.

For mate-terminal, I changed the line for xterm to mate-terminal that was already there for when using twm.

Code: [Select]
exec mate-session &
mate-terminal -geometry 80x66+0+0 -name login

But after I do startx, screen goes light color and then soon comes back to console....

I get error message:

Code: [Select]
Failed to parse arguments: Unknown option -geometry
Any suggestions?
« Last Edit: November 25, 2015, 04:48:09 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 #16 on: November 25, 2015, 10:32:56 pm »
Decided to give LXDE a go.....

Had it running OK on my little Nokia N900 with ALARM on it a few years ago...

Good news is that LXDE opens up OK in about 7 minutes.....so, faster than MATE and XFCE.....

Touchscreen works OK and calibration is pretty close...off by about 1/8".....

Bad news right now is that it didn't auto open LXTerminal as I'd wanted....

I did the following in ~/.config/lxsession/LXDE/autostart after the existing lines of text in file:

Code: [Select]
@lxterminal
But it didn't open up.....

So, just have a nice looking LXDE background image on display with a little black cursor arrow......

No other menu bars, panels, etc, visible......

Hmmmm............

But hopefully, this one has promise with a bit of work.....

UPDATE

Tried various keys.....

When I press the Home button on the keyboard, I get a little window open up on the display....

Openbox at heading of window....

Error message about can't open screenshot.....something like that...

Fortunately, can close the window since stylus calibration is not that far off....

But still no panel bar at bottom of screen nor able to open terminal.....
« Last Edit: November 26, 2015, 01:15:33 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 #17 on: November 27, 2015, 05:42:52 pm »
Progress in some respects......

Got lxdm working....instead of opening LXDE with startx.......

Got the login screen......was able to select which user and login with password OK.....

Now, when it opened up to desktop I have the bottom panel with the little applets (start menu button, file manager icon, desktops, network, RAM usage visual (all green....), time, monitor?,   in it showing......
So that's the good news....

Bad news is that since I don't have terminal open, I can't really do anything as I can't quite get cursor on top of the start menu button in panel at lower left of display...

Took some pics....when I get time, I'll post them here.

Not sure what's going on with LXDE as I the wiki page nor the forum page seems to be working.....so, have found it hard to find info regarding setting up configuration using console and working directly with files. Most LXDE related pages I've found assume you have it running such that you can open up the preferences window and make your selections that way....

Will keep trying......but if anyone has any tips or suggestions, that would be great...
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 #18 on: December 01, 2015, 02:17:30 pm »
Sorry been busy with holiday and being a little under the weather.

I have a terminal start with MATE by changing the end of /etc/X11/xinit/xinitrc

Code: [Select]
# twm &
# xclock -geometry 50x50-1+1 &
# xterm -geometry 80x50+494+51 &
# xterm -geometry 80x20+494-0 &
# exec xterm -geometry 80x66+0+0 -name login
exec mate-session &
exec xterm -name login

Then after it all loads (it does take some time) run the following in that terminal

Code: [Select]
xinput set-prop "ADS7846 Touchscreen" --type=float "Coordinate Transformation Matrix" 1.2 0 -.0625 0 1.18 -.0834 0 0 1
You are right though, really need something lighter ... fluxbox is on my 'to look at' list.
- Gemini PDA | WiFi - Android 7.1.1
- GPD Pocket | Ubuntu Mate 18.10
- Zaurus SL-C3100 | ArchLinuxARM

TheWalt

  • Full Member
  • ***
  • Posts: 176
    • View Profile
X And Window Managers
« Reply #19 on: December 01, 2015, 02:38:54 pm »
Ok, fluxbox runs pretty quick and getting a terminal open is easy as adding "xterm &" to the list of programs in ~/.fluxbox/startup

Can't get the right click to bring up a menu so will have to look into that, but the calibration seems close like before.  Might try a few other lightweights tomorrow.
- 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 #20 on: December 01, 2015, 02:54:58 pm »
Quote from: TheWalt
Sorry been busy with holiday and being a little under the weather.

Hope you're starting to feel better now.....


Quote
I have a terminal start with MATE by changing the end of /etc/X11/xinit/xinitrc

Code: [Select]
# twm &
# xclock -geometry 50x50-1+1 &
# xterm -geometry 80x50+494+51 &
# xterm -geometry 80x20+494-0 &
# exec xterm -geometry 80x66+0+0 -name login
exec mate-session &
exec xterm -name login

Then after it all loads (it does take some time) run the following in that terminal

Thanks for the info....

Quote
Code: [Select]
xinput set-prop "ADS7846 Touchscreen" --type=float "Coordinate Transformation Matrix" 1.2 0 -.0625 0 1.18 -.0834 0 0 1

Thanks....

Quote
You are right though, really need something lighter ... fluxbox is on my 'to look at' list.

Quote from: TheWalt
Ok, fluxbox runs pretty quick and getting a terminal open is easy as adding "xterm &" to the list of programs in ~/.fluxbox/startup

Can't get the right click to bring up a menu so will have to look into that, but the calibration seems close like before.  Might try a few other lightweights tomorrow.


Sounds good!.....
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 #21 on: December 01, 2015, 08:53:55 pm »
Got fluxbox opening with xterm now......

Besides touchscreen calibration and mouse click recognition issues, the keyboard map needs work.

I count 6 keys that are in the numbers row that are accessed with Shift key that are off.

Then the 2 keys to the right of the space bar are off when Shift key used.

Last, the characters usually accessed by pressing the Fn + other keys do not work at all.

From reading Arch wiki and fluxbox pages, I'm not sure which is right way to go about fixing keymap issues; XKB or xmodmap (as daalnroti mentions in his post #10 above...) or ?

Since I can't seem to access the quote marks " character, not sure how to enter the 'xinput set-prop.....' command suggested....

Think fluxbox would be pretty good wm if we get the issues above sorted out.....
opens pretty quickly, runs pretty well, and looks OK on display....at least I think so....
« Last Edit: December 01, 2015, 08:56:51 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/

TheWalt

  • Full Member
  • ***
  • Posts: 176
    • View Profile
X And Window Managers
« Reply #22 on: December 01, 2015, 09:56:37 pm »
Ya I had to make a executable shell script to run with that command while SSH into the Z so I could type the " forgot to mention that
- 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 #23 on: December 01, 2015, 10:25:20 pm »
Quote from: TheWalt
Ya I had to make a executable shell script to run with that command while SSH into the Z so I could type the " forgot to mention that

I see.......thanks for letting me know....

 
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 #24 on: December 08, 2015, 04:08:36 am »
Quote from: TheWalt
Ya I had to make a executable shell script to run with that command while SSH into the Z so I could type the " forgot to mention that

Sorry to be not much of help but you should try to get the keymap working first. This might be trivial but I have not looked into it so far.

Fluxbox may be ok, I would suggest to use dwm or awesome to be lightweight as possible so apps have still a bit of mem to work with.
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)

greguu

  • Global Moderator
  • Sr. Member
  • *****
  • Posts: 393
    • View Profile
    • http://github.com/greguu
X And Window Managers
« Reply #25 on: December 10, 2015, 03:16:36 am »
Using the keymap I posted before and following this guide linked below, you guys may have some luck getting Xorg keyboard going.
If you do, please post a guide here, so others can follow. Thanks.

https://wiki.archlinux.org/index.php/Keyboa...uration_in_Xorg

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 #26 on: December 10, 2015, 01:56:48 pm »
Agree with your points about getting keymap working, daalnroti......

And when I am able to have a block of time to focus on this for a while, I will see if I can make any progress with it.

Problem lately is been lack of time, due to stresses at work and at home.....

But maybe will be some more time in the next week or so....
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 #27 on: December 15, 2015, 12:54:08 am »
Quote from: ArchiMark
Agree with your points about getting keymap working, daalnroti......

And when I am able to have a block of time to focus on this for a while, I will see if I can make any progress with it.

Problem lately is been lack of time, due to stresses at work and at home.....

But maybe will be some more time in the next week or so....


No worries mate, Stress at home at work.. well I know how that is


Keymap :

- make sure you install xmodmap (xorg-xmodmap)

- then create a file called .Xmodmap in your ~ (home) folder. (attached to this post, ungzip before use)

- modify your .xinitrc in your home folder to look like this (example)

~/.xinitrc
Code: [Select]
if [ -s ~/.Xmodmap ]; then
    xmodmap ~/.Xmodmap
fi

exec xterm

- start Xorg via startx and you will get a xterm with working keymap.

Please do some testing etc, I just got it going until here. Touchscreen, I may look into at a later stage.


Cheers!
« Last Edit: December 15, 2015, 03:26:10 am by daalnroti »
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 #28 on: December 15, 2015, 01:08:00 am »
Thanks for the headstart on this, daalnroti.....

Will give it a go as soon as I can....

 
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 #29 on: December 15, 2015, 01:18:30 am »
Quote from: ArchiMark
Thanks for the headstart on this, daalnroti.....

Will give it a go as soon as I can....

 

No worries ArchiMark.

As expected it is slow. Even just running xterm takes almost 50% of memory and scrolling is slow too, but I guess it has always been like that.
Well, pdaXrom used a minimal X11, not Xorg, if I remember correctly, that was a bit more lightweight. The bottleneck is the software rotation to
portrait mode...
« Last Edit: December 15, 2015, 03:26:54 am by daalnroti »
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)