Re: Timer for X-windows?

2021-10-24 Thread David Brownlee
On Sun, 24 Oct 2021 at 21:15, Edgar Pettijohn  wrote:
>
> On 10/24/21 11:06 AM, Ignatios Souvatzis (GSG) wrote:
> >
> > Am 23. Oktober 2021 04:55:21 MESZ schrieb Simon Burge :
> >
> > #!/bin/sh
> >>   $*
> >>
> >>
> >> osd_cat is in pkgsrc/x11/xosd
> >>
> >   I've used xmessage for similar tasks (in xbase)
> >
>
> Same here. Its easy enough to script a timer and pop up an xmessage.
>

... xcowsay


Re: Timer for X-windows?

2021-10-24 Thread Edgar Pettijohn



On 10/24/21 11:06 AM, Ignatios Souvatzis (GSG) wrote:


Am 23. Oktober 2021 04:55:21 MESZ schrieb Simon Burge :
  
#!/bin/sh

  $*


osd_cat is in pkgsrc/x11/xosd


  I've used xmessage for similar tasks (in xbase)



Same here. Its easy enough to script a timer and pop up an xmessage.



Re: Timer for X-windows?

2021-10-24 Thread Ignatios Souvatzis (GSG)



Am 23. Oktober 2021 04:55:21 MESZ schrieb Simon Burge :
 
#!/bin/sh
>  $*
>   
>
>osd_cat is in pkgsrc/x11/xosd
>
 I've used xmessage for similar tasks (in xbase)

-- 
GSG IfI+B-IT
CIE (Chief IPv6 Enabler)


Re: Timer for X-windows?

2021-10-24 Thread Todd Gruhn
Thanks Simon. I got the script working.
It will give me another reason to learn /bin/ksh.

So far, the only thing I learned is PERL. (just because
the syntax and power beat Apple Basic  (made in 1984) )

On Fri, Oct 22, 2021 at 10:55 PM Simon Burge  wrote:
>
> Todd Gruhn wrote:
>
> > I have a project I need to time. While I am on the computer, is there
> > an X-widget
> > that allows me to set and time a process, and has an alarm to get my 
> > attention?
> > Similar to a stopwatch?
>
> I have this little script that would pop up a reminder to do something
> every 10 minutes.
>
> #!/bin/sh
>
> FONT="-adobe-helvetica-bold-r-normal-*-*-640-*-*-p-*-iso8859-1"
>
> show()
> {
> echo $* | osd_cat -A center -p middle -c red -s 1 -d 1 -f 
> "$FONT"
> }
>
>
> while true; do
> sleep $((10 * 60))
> show $*
> sleep 1
> show $*
> sleep 1
> show $*
> done
>
> osd_cat is in pkgsrc/x11/xosd
>
> I haven't used this in over a decade.  It doesn't have a count down
> clock, but you might be able to do something with the alarm bit.
>
> Cheers,
> Simon.


Re: Timer for X-windows?

2021-10-22 Thread Simon Burge
Todd Gruhn wrote:

> I have a project I need to time. While I am on the computer, is there
> an X-widget
> that allows me to set and time a process, and has an alarm to get my 
> attention?
> Similar to a stopwatch?

I have this little script that would pop up a reminder to do something
every 10 minutes.

#!/bin/sh

FONT="-adobe-helvetica-bold-r-normal-*-*-640-*-*-p-*-iso8859-1"

show()
{
echo $* | osd_cat -A center -p middle -c red -s 1 -d 1 -f 
"$FONT"
}


while true; do
sleep $((10 * 60))
show $*
sleep 1
show $*
sleep 1
show $*
done

osd_cat is in pkgsrc/x11/xosd

I haven't used this in over a decade.  It doesn't have a count down
clock, but you might be able to do something with the alarm bit.

Cheers,
Simon.


Timer for X-windows?

2021-10-22 Thread Todd Gruhn
I have a project I need to time. While I am on the computer, is there
an X-widget
that allows me to set and time a process, and has an alarm to get my attention?
Similar to a stopwatch?


X windows freezes under nouveau

2021-06-25 Thread Todd Gruhn
I have seen nouveau freeze several times -- I had to reboot the system
I have seen NetBSD pause for exended periods of time when it loaded the
nouveau driver.

Is there a way to find the cause and send it in?
How do I know the problem is NetBSD (i am running HEAD), or the nouveau
driver?


Re: X-windows

2020-04-25 Thread Clay Daniels
On Tue, Apr 21, 2020 at 8:14 PM Todd Gruhn  wrote:

>
> "The last time I ran 'X -configure' , I got a error in the xorg logfile:
>
> "no screens found"
>
> I recall having this problem in the past. It had something to do with
> /etc/wsconf.conf."
>

Todd, I have the same issue on my newer computer. X does not seem to want
to work for NetBSD for me. I dedicated a whole ssd drive to a MBR install
of NetBSD9.0, and I tried to work with wscons.conf but no luck running X.

Meanwhile, on my older machine I give NetBSD 9.0 the entire 456Gb disk and
it's quite happy. I will admit I use a simple window manager, TWM, but it
runs Firefox, etc.

I also run the weekly snapshot of FreeBSD most every Thursday on my new
machine, and in order to load X, I have to put a line in /boot/loader.conf
that says: "hw.syscons.disable=1". Apparently syscons are similar to NetBSD
wscons, so I'm pretty sure there is some trick in wscons.conf to find a
screen for X. (Also, my understanding is that is just needed for FreeBSD
for AMD chips, like my Ryzen 7 & MSI Radeon RX570 video card, and not Intel
chips, but there is obviously a lot I do not understand clearly.)

Clay


Slow X-windows AND nVidia GeFORCE GTX 1660

2020-04-23 Thread Todd Gruhn
Is anybody running NetBSD+X while using an nVidia GTX 1660 graphics board?

What did you did you do to get it to run with NetBSD?


X-windows

2020-04-21 Thread Todd Gruhn
I found out from the manual that I have an on-board graphics chip. Can
this cause
the slowness I have been experiencing?

Is there a program that allows me to interrogate this board and see what the PCI
address of the on-board graphics chip is; and whether this  on-board
graphics chip is
on or off?

The last time I ran 'X -configure' , I got a error in the xorg logfile:

"no screens found"

I recall having this problem in the past. It had something to do with
/etc/wsconf.conf.

Does the nouveau driver support 1660 chipset yet?


Slowness of X-windows

2020-04-16 Thread Todd Gruhn
I updated to NetBSD-9.1_stable.

Xwindows came up without arguing.
I did not have to  do 'boot c' then disable nouveau.

X is still slow. I noticed errors in the upgrade.

When I checked the Xorg*log file I noticed Card0 and a couple devices
are missing. Here is the Xorg.0.log file (attached).

Could these explain the slowness?


Xorg.0.log
Description: Binary data


Re: SLOW X-windows

2020-04-15 Thread Pedro Pinho
>Today I noticed that I have ca. 30 files named .serverauth #? = 1 char
>If I have 4 windows open plus the XClock -- shouldnt there only be 5 of
these
>.xauth files?
>How would this affect the performance of X-windows ?
>If thats the prob, can the number of .xauth files be limited ?

I think you got it a bit wrong. You should only get one .serverauthXXX for a
Xserver request, this has nothing to do with the number of windows open
within
the Xserver itself.

Also, if you configure things correctly, these files should be removed when
rebooting or shutingdown.
Guess you forgot to configure /etc/hosts ;)

Here's how it should look like
==
  1 #   $NetBSD: hosts,v 1.9 2013/11/24 07:20:01 dholland Exp $

  2 #
  3 # Host name database.
  4 #
  5 # This file contains addresses and aliases for local hosts whose names
  6 # need to be resolvable during system boot; typically this includes only
  7 # the address and FQDN for this machine's hostname.
  8 #
  9 # By default this file is consulted before DNS, so adding additional
 10 # material here that then becomes out of date can lead to confusion.
 11 # See nsswitch.conf(5).
 12 #
 13 ::x myhost.my.DNSdomain myhost
 14 xxx.x.x.x   myhost.my.DNSdomain myhost
 15 #
 16 # RFC 1918 specifies that these networks are "internal":
 17 # xx.x.x.x-   xx.xx.xxx.xxx  (xx/x prefix)
 18 # xxx.xx.x.x  -   xxx.xx.xxx.xxx  (xxx.xx/xx prefix)
 19 # xxx.xxx.x.x -   xxx.xxx.xxx.xxx (xxx.xxx/xx prefix)
=
where myhost=the name you gave your machine at install time
 my.DNSdomain=the name your gave your DNS at install time
 x=the numbers assigned by dhcp

Remove all, but the last (by date) .serverauthXXX from your home directory,
fix
/etc/hosts as described and reboot your machine.

Den ons 15 apr. 2020 kl 01:04 skrev Todd Gruhn :

> Today I noticed that I have ca. 30 files named .serverauth #? = 1 char
>
> If I have 4 windows open plus the XClock -- shouldnt there only be 5 of
> these
> .xauth files?
>
> How would this affect the performance of X-windows ?
>
> If thats the prob, can the number of .xauth files be limited ?
>


SLOW X-windows

2020-04-14 Thread Todd Gruhn
Today I noticed that I have ca. 30 files named .serverauth #? = 1 char

If I have 4 windows open plus the XClock -- shouldnt there only be 5 of these
.xauth files?

How would this affect the performance of X-windows ?

If thats the prob, can the number of .xauth files be limited ?


Re: Resetting X windows

2020-04-02 Thread Benny Siegert
This sounds like your window manager crashed, or is not running. If
you can get into an xterm, try running mwm, or whatever window manager
you are using.

On Thu, Apr 2, 2020 at 7:16 AM Todd Gruhn  wrote:
>
>
> I tried to set pointer colors under LessTif.
>
> I used  "xsetroot" ; now I cant access and resize windows, and my
> menus wont show.
>
> I already tried:
>
> xsetroot 
> xsetroot -def 
>
> These did not fix anything. Do I need to reinstall?
>
> My goal is to change the colors of the root-pointer, and the 
> window/xterm-pointer so they are more obvious.



-- 
Benny


Resetting X windows

2020-04-01 Thread Todd Gruhn
I tried to set pointer colors under LessTif.

I used  "xsetroot" ; now I cant access and resize windows, and my
menus wont show.

I already tried:

xsetroot 
xsetroot -def 

These did not fix anything. Do I need to reinstall?

My goal is to change the colors of the root-pointer, and the
window/xterm-pointer so they are more obvious.