• Re: [gentoo-user] Scripting KDE?

    From Michael@21:1/5 to All on Mon Jul 29 14:32:24 2024
    On Monday, 29 July 2024 14:27:03 BST Matt Connell wrote:
    On Mon, 2024-07-29 at 14:17 +0100, Peter Humphrey wrote:
    Is there a way to pass a shutdown command to KDE over SSH? Google
    doesn't help
    me much, though it has a good deal of stuff on scripting inside KDE.

    loginctl terminate-session

    ^ would be the first thing I would try.

    That'll exit the desktop session.

    Try 'loginctl hibernate' if you want to save everything to disk, or for 'loginctl suspend' for a faster startup.

    -----BEGIN PGP SIGNATURE-----

    iQIzBAABCAAdFiEEXqhvaVh2ERicA8Ceseqq9sKVZxkFAmanmegACgkQseqq9sKV ZxnIJhAA2ottE2R9v5lUxcC2mEEI28vdn533+89uBDQKZCK14Y8kRj6XkiQPkhdp fSh6F0EDDRvKGMkqjxxggqq0oi79nOvB/e8AaB+5VVi7c/ZkvMCYSJ5TbHmp0qZx G22wAwuK+guvq1Druo2Ts7RukoC2jxaIARVVdFCrbmtUq1F1MKKEY35qzWS3K3bR 6HMXqdDL8JVTvgzi5RF60oqWWuim7vP8/sYgVUem1VScPFPCW/xLipbgUGYW4oAF gJrqaSngY1Gw3cTw2gYinmpJVm786THBIkmIpxxW45aOJ6bPg9jUv+Hsu742kC7q IXAw0/j3wttJe38zBKztLa9mmo0Rce2yiKLG9kQe5PnwV7N9aLCJMOOaQi2NQQEa f8RA+q79QlgpHL96FH002AgysA5eZ958GEr7yL+IbdCLSUve2tSjKqnBcahXGhVt VCMCmsWV+y1ROSRL3XJdTmKfgmEs8w+NnribOm/WJKsTdPxXsmF016q+NnZc76o7 Sp25GmqaPNwz8fX/CgxMITmOvHVQjUj8vs4TWOLJop6wOzPNIkKtCCz48AF2sTDZ 3xDa/uaPrq712h10nlhh1ippBn8hnwsHCKX+x5LkFGt0tTXtIY1e+yLGCAnyrN0X srFKlh1sD6nlz8W3xM6MFcmuFofHXGWey/TL6gLRWmaGOxy30MA=
    =vryS
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Peter Humphrey@21:1/5 to All on Mon Jul 29 15:50:01 2024
    On Monday, 29 July 2024 14:32:24 BST Michael wrote:
    On Monday, 29 July 2024 14:27:03 BST Matt Connell wrote:
    On Mon, 2024-07-29 at 14:17 +0100, Peter Humphrey wrote:
    Is there a way to pass a shutdown command to KDE over SSH? Google
    doesn't help me much, though it has a good deal of stuff on scripting inside KDE.

    loginctl terminate-session

    ^ would be the first thing I would try.

    That'll exit the desktop session.

    Try 'loginctl hibernate' if you want to save everything to disk, or for 'loginctl suspend' for a faster startup.

    No, I don't suspend or hibernate here; I'll try Matt's suggestion and follow
    it with 'sudo reboot'.

    Thank you both.

    --
    Regards,
    Peter.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Peter Humphrey@21:1/5 to All on Mon Jul 29 15:20:01 2024
    Greetings,

    I'd like to be able to shut a KDE machine down from another room, over SSH. If I do that with a simple 'reboot' command, I lose all my desktop contents. Not surprising, as KDE is not shutting itself down but having the rug yanked out from under it.

    Is there a way to pass a shutdown command to KDE over SSH? Google doesn't help me much, though it has a good deal of stuff on scripting inside KDE.

    --
    Regards,
    Peter.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Peter Humphrey@21:1/5 to All on Mon Jul 29 19:50:02 2024
    On Monday, 29 July 2024 16:10:10 BST Mark Knecht wrote:
    On Mon, Jul 29, 2024 at 6:42 AM Peter Humphrey <peter@prh.myzen.co.uk>

    wrote:
    On Monday, 29 July 2024 14:32:24 BST Michael wrote:
    On Monday, 29 July 2024 14:27:03 BST Matt Connell wrote:
    On Mon, 2024-07-29 at 14:17 +0100, Peter Humphrey wrote:
    Is there a way to pass a shutdown command to KDE over SSH? Google doesn't help me much, though it has a good deal of stuff on

    scripting

    inside KDE.

    loginctl terminate-session

    ^ would be the first thing I would try.

    That'll exit the desktop session.

    Try 'loginctl hibernate' if you want to save everything to disk, or for 'loginctl suspend' for a faster startup.

    No, I don't suspend or hibernate here; I'll try Matt's suggestion and

    follow

    it with 'sudo reboot'.

    Thank you both.

    --
    Regards,
    Peter.

    Or possibly sudo shutdown -h now?

    Yes. The bit I needed was getting KDE to exit gracefully instead of being killed blindly.

    --
    Regards,
    Peter.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From gentoo@dhaller.de@21:1/5 to All on Mon Jul 29 22:20:01 2024
    Hello,

    29.07.2024 15:17:26 Peter Humphrey <peter@prh.myzen.co.uk>:
    I'd like to be able to shut a KDE machine down from another room, over SSH.

    https://superuser.com/questions/395820/how-to-properly-end-a-kde-session-from-shell-without-root-privileges
    https://stackoverflow.com/questions/78175326/how-can-i-trigger-shutdown-or-logout-in-kde-plasma-via-qdbus-in-python

    (don't get irritated about that python in the second)

    HTH,
    -dnh

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Peter Humphrey@21:1/5 to gentoo@dhaller.de on Tue Jul 30 11:30:02 2024
    On Monday, 29 July 2024 21:12:35 BST gentoo@dhaller.de wrote:
    Hello,

    29.07.2024 15:17:26 Peter Humphrey <peter@prh.myzen.co.uk>:
    I'd like to be able to shut a KDE machine down from another room, over
    SSH.

    https://superuser.com/questions/395820/how-to-properly-end-a-kde-session-fro m-shell-without-root-privileges https://stackoverflow.com/questions/78175326/how-can-i-trigger-shutdown-or-> logout-in-kde-plasma-via-qdbus-in-python

    Interesting; thanks.

    --
    Regards,
    Peter.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Frank Steinmetzger@21:1/5 to All on Sun Aug 18 19:10:01 2024
    Am Mon, Jul 29, 2024 at 02:17:13PM +0100 schrieb Peter Humphrey:
    Greetings,

    I'd like to be able to shut a KDE machine down from another room, over SSH. If
    I do that with a simple 'reboot' command, I lose all my desktop contents. Not
    surprising, as KDE is not shutting itself down but having the rug yanked out from under it.

    Is there a way to pass a shutdown command to KDE over SSH? Google doesn't help
    me much, though it has a good deal of stuff on scripting inside KDE.

    Process communication in KDE happens with dbus. So whenever you want to trigger an action in KDE vom the terminal, this is where you should look.

    The first two hits when I searched for "kde dbus logout" are: https://superuser.com/questions/395820/how-to-properly-end-a-kde-session-from-shell-without-root-privileges
    https://discuss.kde.org/t/logout-reboot-and-shutdown-using-the-terminal/743

    Perhaps they put you on the right track to your goal.

    --
    Grüße | Greetings | Salut | Qapla’
    Please do not share anything from, with or about me on any social network.

    Suicide is the most honest form of self-criticism.

    -----BEGIN PGP SIGNATURE-----

    iQIzBAABCgAdFiEEVbE9o2D2lE5fhoVsizG+tUDUMMoFAmbCKIAACgkQizG+tUDU MMr0dBAApz+At7D/ezVr3JFJqQutHx9pMU3RH6LTQvVYy6ojxvilF8yvAxejJj+m +sQ2lfL/iAW01+VK21p7m/iMYamqYbbkpM4qEEuuswLOf88iBEV7FRsfMSjv6lDA M6u5vI+kXK2RpMcpz097H370ooOvCJJTIfHizxCrvaGr/iLNxn+dh8xZ/QEw4Gsl MIGTfrrCCTkBI5NdrxGJarUGY4cqeIYOOtUc5WGQZ3n+AuoYMi0v086A2xcSWJEi WdM4haoG2RM/nGMjpSgPcr7HgTdZLqZ22pF/Xz3J6gRn5c1dU2hWKQZ35j3kGYot H4scc4KsQ5b/iy+Ro+6rWGbYTJv/FzpDc9i76CyMrSPZpkOsQfKobb5z2Tq/mBOs s1dQLKB6K65ZGA0+yPIxGCWzNgxF1fabGal0dL0GvNToCpTRhLBFLBq7LDR43ukk y6kJYVycU3WlFYULKtb5/jvGRLiAekWpcWCRc++C3VCRc7aorQjz5ZTOl9bmNUPW yRsSxeRqdUOXE1HdMJeAS1g11Bw0Cd0HviG8EN9S1qIkhhfL9YdGGHIiolJkudUg YmPxYrejl9YJY3OUszvhOnAUpkxhlaHFYSgnPt7UDLwKppO1CWW3SBdnO/Gg33gV HDsYE82YaCd5iPfohhWOv9wFCN2wbVCyYeIFyMk4ApDbrDpDWjw=
    =Gqf+
    -----END PGP SIGNATURE-----
  • From Michael@21:1/5 to All on Sun Aug 18 23:41:01 2024
    On Sunday, 18 August 2024 19:15:32 BST Dale wrote:
    Frank Steinmetzger wrote:
    Am Mon, Jul 29, 2024 at 02:34:31PM -0500 schrieb Dale:
    I still don't like this small version of a keyboard. I like the size of >> the old Dell Quietkey from my old rig. It's old, PS/2 and all but it
    fits my fingers better. I can't find a reasonably priced replacement.
    They all seem to be smaller. How does one type on these little
    things??? I get lots of typos.

    Well the obvious question is then, why did you buy a small keyboard? :o) Those key sizes are standardised. AFAIK the stardard key raster is 19 mm per single-width key. So unless you chose a specifically down-scaled product, it should be the same size as it’s ever been. What did you buy anyways?
    Well, there's something different because it "feels" different. I keep hitting keys to one side or the other mostly. The only difference I can
    see, the key caps are shorter than the old Dell QuietKey. I suspect
    the key caps are twice as tall on the old Dell. Also, the old Dell had
    more travel for each key press too. I've used that old thing for over
    20 years. My old brain can't learn new tricks. ROFL

    I been looking for a keyboard that is like the old Dell QuietKey but
    they either ridiculously expensive or are old Dell keyboards with the
    PS/2 connector like I already have. Thought about buying a adapter so I
    can use the old Dell. That would fix the problem.

    Now that I've proofed this thing half a dozen times and corrected a
    bunch of typos, let's hit send. LOL If I was a book writer, forget
    about it. I'd retire. o_-

    Dale

    :-) :-)

    I suspect you were used to a membrane keyboard, or if it clickety-clacked noisily a mechanical switch keyboard, with full travel switches. Now you have bought a low profile scissor switch keyboard, with tactile switches. The distance between the keys is the same, but the travel and feel is different.

    Over time you'd get used to the new switches, which require less effort and force.

    -----BEGIN PGP SIGNATURE-----

    iQIzBAABCAAdFiEEXqhvaVh2ERicA8Ceseqq9sKVZxkFAmbCeH0ACgkQseqq9sKV ZxnhhRAA3szduR/gMgqwkgG+bvYIvBvvvMtQWlaJTGrdgxuTJNUDBMNXU1UnL0NA hXdDuAkoTELMxQGiuMX3MZ6F7WV2L2dHHnu1UnR2IvbHQFPPDVnHAlVr/6rwUesd rtLYqjXWcwdk82pyBo/T4ejJcYxqGcxI+x7zfH3sQA+4XQDul/5JlV4QT73tFEWq IUl1AU3tCozI674V9omwenWKv2aye/eHxPBFio3SJkDy4Gm10n+W3bTZV0OxpFCN UZsXQY4v9rr+cOMhZd4seThG5TVPlfw/FkIumnRiPrB/98c7Ben3puuuQ98MMCmQ tdyZZpRVXCaBh/u52fPAcKYkPl0TmhNRMw2PO2YD6XszBdh+KJ+92scrSRR2H128 cZDMc+PAMr6iUHBo2juwgLsp/uBPlATzzy73m8sC827QvutY/zrnNUuWzjWxhQns UgeEx27mmWNIRjPbuGcNxLoXelQlNkUi38nLR35py/g1QNeaSdEC5fBWvzIPvOqb CQukMDN6UsTuNnQsqIAmVRY3JEmWYHb1bB/pucDmWb5pEZH4HVJrBMB5dFIHUV+b dIH8lGdORaSH32DamjWnwLcgoOZxoPj/672UpPgp8VRAuiW/kYCqOj+k5xnUZBx7 rKmemAbnLOKqgniogziZXXfahdSB8Vq8Praw8M7XRBzvUKXvMGQ=
    =JJg0
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Michael@21:1/5 to All on Mon Aug 19 10:11:56 2024
    On Monday, 19 August 2024 00:12:27 BST Dale wrote:
    Michael wrote:
    On Sunday, 18 August 2024 19:15:32 BST Dale wrote:
    Well, there's something different because it "feels" different. I keep
    hitting keys to one side or the other mostly. The only difference I can >> see, the key caps are shorter than the old Dell QuietKey. I suspect
    the key caps are twice as tall on the old Dell. Also, the old Dell had
    more travel for each key press too. I've used that old thing for over
    20 years. My old brain can't learn new tricks. ROFL

    I been looking for a keyboard that is like the old Dell QuietKey but
    they either ridiculously expensive or are old Dell keyboards with the
    PS/2 connector like I already have. Thought about buying a adapter so I >> can use the old Dell. That would fix the problem.

    Now that I've proofed this thing half a dozen times and corrected a
    bunch of typos, let's hit send. LOL If I was a book writer, forget
    about it. I'd retire. o_-

    Dale

    :-) :-)

    I suspect you were used to a membrane keyboard, or if it clickety-clacked noisily a mechanical switch keyboard, with full travel switches. Now you have bought a low profile scissor switch keyboard, with tactile switches.
    The distance between the keys is the same, but the travel and feel is different.

    Over time you'd get used to the new switches, which require less effort
    and
    force.

    That's likely true. It does feel weird. It's not as loud as those
    really old IBM keyboards like from the 80's and 90's. It made some
    noise just not as much as those. Sometimes I'm pressing a key and don't
    even know it.

    Hmm ... perhaps you haven't bought a tactile keyboard after all? These kind
    of keyboards provide a tactile bump at ~1/3 of the key travel to let you know you've activated a key. Some have a more distinct feedback bump than others and low or especially the ultra-low profile keys with their less than 2mm
    total travel will hit the stop as soon as you press the key past the bump.


    Then I end up with several of the same characters in a row.

    The typing style for low profile keyboards is different to your old keyboard. You are not meant to rest your hands/fingers on the keyboard and then jump on the keys as if it were a mechanical typewriter. Instead your fingers are
    meant to float over it.

    However, what you're describing is key switch chatter. Mechanical keyboard switches can suffer from this problem. You depress a key once and once only, but it registers multiple inputs. It can be *very* annoying! There are some fixes for mechanical gaming keyboards, but if you have a new keyboard you'd be better off asking to RMA it.

    If the chatter is not caused by the keyboard switches, then you could set a longer delay in your Plasma SystemSettings > Input Devices > Keyboard to see if this ameliorates the multiple input problem.


    Others times, I hit a key next to the one I want to push. When
    searching around, I found lots of other posts about people missing those
    old Dell QuietKey keyboards. I'm not alone.

    We had the old RT7D5JTW Dell keyboards at work. These were high quality keyboards made in Thailand, as opposed to China. If I recall correctly, they had the rubber dome over membrane key switches with a slider mechanism.
    Despite the physical abuse they received by ex-type writer users they survived even when the odd cup of tea was spilled over them! You had to turn them over immediately and let them dry overnight.

    https://deskthority.net/wiki/Rubber_dome


    It's annoying as heck. I spend twice as much time correcting typos than
    I do actually typing something in. My typing was bad enough already. LOL

    It may be worth heading to a store to try different types of keyboard to find the one your fingers like best.

    Or, you could buy an adaptor to connect your PS/2 old keyboard to a USB port. Careful though, some really cheap PS/2 to USB adaptors are only good for a PS/ 2 mouse and won't work with a keyboard.

    -----BEGIN PGP SIGNATURE-----

    iQIzBAABCAAdFiEEXqhvaVh2ERicA8Ceseqq9sKVZxkFAmbDDFwACgkQseqq9sKV Zxlh8Q//SWa992knBqmfPO+tu5BzUL40q9bcg7mq/Ip6uJncedc4W2KtgoRFtvou sa7+oqGFdaylYgokT0bxlhA22IE09VPBOeGsvvudRt4sPvhGu//Bk0XJWlmVPGrl R04Pab+Vz1ekr8QaWzyPbq74cDAJ2zhbZRC+9z0OFLrrsAX82V+v5rzJN7q3E2X0 UXD62kdLa9mtjUyEGZ4ldpl84xzgC95nRqjcW8LNqK1hEROIvXAqzpY/OgX8Cwlx n81RgFixeccsih6xzo3GcKVrDfSFlqpDeY2Nwtx0vMZFmt+EWqCF6sMEv0Nk3Aml 5j/sWseo0Q3SCut52ExtFywdd9Ako02V2mtwlgSHKj/gPMSVY+YoTPqKN8M45Hs8 0IqOrcJAbF8j4M128bpHFCmv5amka5SCfp8lIX8CvYnDAT9TMmz32C5oNYOlYn6Q 0wZjgyO+1dqKbgM1B3VUS2upFx/1Ojl0pNApTSkiZGwu7VcgSzr33Dm1WL2Cl+tg pmEG1e54yJMkc6qmLS6A0SokQ4zcSBJ4xUyTVEFNtUxqcR+ZgSaeDM0Q8eTNUxRO Br6xBlzs5Y+c3XEy57zgC4KZwsC7loA+EtC1KYo0VSN+qhYr/zxKRxtDZPqmu3s0 pFkAaa+dt0+uujzV20HaHlCZ5eTojETgpH5+cWIQW6RRQvu/IKY=
    =RV8P
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Wols Lists@21:1/5 to Dale on Sat Aug 31 19:20:01 2024
    On 19/08/2024 00:12, Dale wrote:
    It's annoying as heck.  I spend twice as much time correcting typos than
    I do actually typing something in.  My typing was bad enough already.  LOL

    I normally use an ergonomic keyboard (you know, the v-shaped version),
    and when I use the normal oblong one my fingers are always missing their
    target ...

    Cheers,
    Wol

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Wol@21:1/5 to Dale on Sat Aug 31 22:00:02 2024
    On 19/08/2024 14:15, Dale wrote:
    I might add, I've never seen a laptop that I liked the keyboard on. It's
    one reason I won't buy one.  If the keyboard isn't bad enough, the
    little thing that replaces the mouse really turns me off.

    That's why I always use my laptops with an external mouse and keyboard -
    well, I would do on my linux laptop if it didn't keep wiping the dongle
    memory.

    Also on Windows at least, there's a setting that disables that awful
    keypad if a mouse is attached. The problem is, it only looks for a mouse dingle, so if I plug in a keyboard (and no mouse), it still disables the trackpad so you're down a mousehole ...

    Cheers,
    Wol

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Peter Humphrey@21:1/5 to All on Sun Sep 1 12:40:01 2024
    On Saturday, 31 August 2024 20:03:45 BST Dale wrote:

    I'm thinking about a PS/2 to USB adapter. Go back to my old keyboard.
    ;-) Just give it a good cleaning first.

    It'll be the best fourpence-halfpenny you've ever spent...

    :)

    --
    Regards,
    Peter.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)