Re: Xorg garbage mouse pointer in window edges and corners (NetBSD 10.0_RC3)
El 1/2/24 a las 15:56, RVP escribió: On Thu, 1 Feb 2024, Ramiro Aceves wrote: I am not using any xorg.conf file. Ithink I will have to generate w new one with: # X -configure And place in /etc/X11/xorg.conf then add the option Option "SWcursor" "on" You don't need the whole thing; just a fragment like this will do: ``` $ cat /etc/X11/xorg.conf.d/modesetting.conf Section "Device" Identifier "Card0" Driver "modesetting" Option "SWcursor" "on" EndSection $ ``` -RVP Hello RVP, Thanks for the tip. I found that I was indeed using a xorg.conf file product of old experiments: netbsd-nuc# cat xorg.conf-backup-modesetting Section "ServerLayout" Identifier "X.org Configured" Screen 0 "Screen0" 0 0 InputDevice"Mouse0" "CorePointer" InputDevice"Keyboard0" "CoreKeyboard" EndSection Section "Files" ModulePath "/usr/X11R7/lib/modules" FontPath "/usr/X11R7/lib/X11/fonts/misc/" FontPath "/usr/X11R7/lib/X11/fonts/TTF/" FontPath "/usr/X11R7/lib/X11/fonts/Type1/" FontPath "/usr/X11R7/lib/X11/fonts/75dpi/" FontPath "/usr/X11R7/lib/X11/fonts/100dpi/" EndSection Section "Module" Load "dri" Load "dri2" Load "glx" #Load "shadow" EndSection Section "DRI" Group "wheel" Mode 0660 EndSection Section "InputDevice" Identifier "Keyboard0" Driver "kbd" EndSection Section "InputDevice" Identifier "Mouse0" Driver "mouse" Option "Protocol" "wsmouse" Option "Device" "/dev/wsmouse" Option "ZAxisMapping" "4 5 6 7" EndSection Section "Monitor" Identifier "Monitor0" VendorName "Monitor Vendor" ModelName"Monitor Model" EndSection Section "Device" Identifier "Card0" #Driver "wsfb" Driver "modesetting" EndSection Section "Screen" Identifier "Screen0" Device "Card0" Monitor"Monitor0" SubSection "Display" Viewport 0 0 Depth 1 EndSubSection SubSection "Display" Viewport 0 0 Depth 4 EndSubSection SubSection "Display" Viewport 0 0 Depth 8 EndSubSection SubSection "Display" Viewport 0 0 Depth 15 EndSubSection SubSection "Display" Viewport 0 0 Depth 16 EndSubSection SubSection "Display" Viewport 0 0 Depth 24 EndSubSection EndSection If I use no xorg.conf file at all, it picks intel driver and there are no problems in window edges and corners. If I use your config file it works fine!, no problems on the corners and edges and modesetting driver is used: netbsd-nuc# cat /etc/X11/xorg.conf Section "Device" Identifier "Card0" Driver "modesetting" Option "SWcursor" "on" EndSection Thanks so much. Ramiro.
Re: shrinking a filesystem using resize_ffs(8)
Michael van Elst wrote: > jscha...@netmeister.org (Jan Schaumann) writes: > >$ sudo newfs -C 2 /dev/rvnd0a > > There is no '-C'. Maybe -O 2 ? Yes. :-) > But resize_ffs doesn't support shrinking FFS2 and should > complain when you try. > You tell resize_fsck the new size with -s and then > reduce the partition size accordingly. Ah, the order is first resize_ffs, then update the disklabel. So the order is: $ sudo newfs -O 1 vnd0a # start out with 1GB /dev/rvnd0a: 1024.0MB (2097152 sectors) block size 16384, fragment size 2048 using 6 cylinder groups of 170.67MB, 10923 blks, 21504 inodes. super-block backups (for fsck_ffs -b #) at: 33, 349568, 699104, 1048640, 1398176, 1747712, $ sudo resize_ffs -s 1048576 /dev/rvnd0a # shrink to 512MV $ sudo disklabel -e vnd0 # adjust disklabel $ sudo mount /dev/vnd0a /mnt $ df -h /mnt Filesystem Size Used Avail %Cap Mounted on /dev/vnd0a 504M 2.0K 479M 0% /mnt $ Nice, that works. Thanks! -Jan
Re: shrinking a filesystem using resize_ffs(8)
jscha...@netmeister.org (Jan Schaumann) writes: >Hi, Hi, >$ sudo newfs -C 2 /dev/rvnd0a There is no '-C'. Maybe -O 2 ? But resize_ffs doesn't support shrinking FFS2 and should complain when you try. >[ back to two '1048576' sized partitions ] >$ sudo fsck_ffs -y -f /dev/rvnd0b >[ all ok ] The 'b' filesystem was probably never changed but maybe trashed in a way that fsck doesn't understand. >$ sudo resize_ffs -v /dev/rvnd0b >No change requested: already 524288 blocks The superblock and partition agree. Nothing to do and nothing to check. >$ sudo fsck_ffs -y -f /dev/rvnd0a >** /dev/rvnd0a >CANNOT READ: BLK 2010160 >CONTINUE? yes The 'a' filesystem still thinks it is 1GB and you try to shrink it. But the disklabel already restricts access to the lower half. Any attempt to access data from the upper half fails. >$ sudo resize_ffs -v /dev/rvnd0a >resize_ffs: read failed: Invalid argument Dito. Shrinking requires access to all the data. >So... how do I shrink a filesystem? You tell resize_fsck the new size with -s and then reduce the partition size accordingly.
shrinking a filesystem using resize_ffs(8)
Hi, I'm trying to shrink a filesystem using resize_ffs(8), but I keep getting an error: resize_ffs: read failed: Invalid argument Here's the setup: I start out with a 1GB disk with two 512MB partitions: $ sudo disklabel vnd0 [...] #sizeoffset fstype [fsize bsize cpg/sgs] a: 1048576 0 4.2BSD 0 0 0 # (Cyl. 0 -511) b: 1048576 1048576 4.2BSD 0 0 0 # (Cyl.512 - 1023) d: 2097152 0 unused 0 0 # (Cyl. 0 - 1023) $ sudo newfs -C 2 /dev/rvnd0a [...] $ sudo newfs -C 2 /dev/rvnd0b [...] I can easily grow partitiona 'a' to the size of the full disk: $ sudo disklabel -e vnd0 [ becomes now: ] #sizeoffset fstype [fsize bsize cpg/sgs] a: 2097152 0 4.2BSD 0 0 0 # (Cyl. 0 - 1023) d: 2097152 0 unused 0 0 # (Cyl. 0 - 1023) $ sudo fsck_ffs -f /dev/rvnd0a >/dev/null $ sudo resize_ffs /dev/rvnd0a [...] $ sudo mount /dev/vnd0a /mnt $ df -h /mnt Filesystem Size Used Avail %Cap Mounted on /dev/vnd0a 963M 1.0K 915M 0% /mnt Now trying to shrink it again: $ sudo umount /mnt $ sudo disklabel -e vnd0 [ back to two '1048576' sized partitions ] $ sudo fsck_ffs -y -f /dev/rvnd0b [ all ok ] $ sudo resize_ffs -v /dev/rvnd0b No change requested: already 524288 blocks $ sudo fsck_ffs -y -f /dev/rvnd0a ** /dev/rvnd0a CANNOT READ: BLK 2010160 CONTINUE? yes THE FOLLOWING DISK SECTORS COULD NOT BE READ: 2010160, 2010161, 2010162, 2010163, /dev/rvnd0a: CANNOT FIGURE OUT SECTORS PER CYLINDER $ sudo resize_ffs -v /dev/rvnd0a resize_ffs: read failed: Invalid argument $ So the second partition worked out just fine, but vnd0a could not be shrunk. (It's not surprising that fsck couldn't read the noted sectors prior to running resize_ffs, since those were now beyond its new size.) So... how do I shrink a filesystem? -Jan
Re: Xorg garbage mouse pointer in window edges and corners (NetBSD 10.0_RC3)
On Thu, 1 Feb 2024, Ramiro Aceves wrote: I am not using any xorg.conf file. Ithink I will have to generate w new one with: # X -configure And place in /etc/X11/xorg.conf then add the option Option "SWcursor" "on" You don't need the whole thing; just a fragment like this will do: ``` $ cat /etc/X11/xorg.conf.d/modesetting.conf Section "Device" Identifier "Card0" Driver "modesetting" Option "SWcursor" "on" EndSection $ ``` -RVP
Re: Xorg garbage mouse pointer in window edges and corners (NetBSD 10.0_RC3)
El jue, 1 feb 2024 a las 11:38, RVP () escribió: > > On Thu, 1 Feb 2024, Ramiro Aceves wrote: > > > When I place mouse pointer over the edges or corners of xorg windows > > to resize them (same XFCE and CTWM), mouse pointer icon starts to > > show garbage drawing until it ends well shaped after 1 or 2 seconds. > > > > If you run the `modesetting` Xorg display-driver, you can try: > > Option "SWcursor" "on" > > -RVP Hello RVP, many thanks for the tip. I am at work now and I cannot test until arrive home. Yes I am using modesetting driver. If I recall correctly, I am not using any xorg.conf file. Ithink I will have to generate w new one with: # X -configure And place in /etc/X11/xorg.conf then add the option Option "SWcursor" "on" is not it? Just to have things clear in my mind before trying. Thanks. Regards.
Re: Xorg garbage mouse pointer in window edges and corners (NetBSD 10.0_RC3)
El jue, 1 feb 2024 a las 11:38, RVP () escribió: > > On Thu, 1 Feb 2024, Ramiro Aceves wrote: > > > When I place mouse pointer over the edges or corners of xorg windows > > to resize them (same XFCE and CTWM), mouse pointer icon starts to > > show garbage drawing until it ends well shaped after 1 or 2 seconds. > > > > If you run the `modesetting` Xorg display-driver, you can try: > > Option "SWcursor" "on" > > -RVP Hello RVP, many thanks for the tip. I am at work now and I cannot test until arrive home. Yes I am using modesetting driver. If I recall correctly, I am not using any xorg.conf file. Ithink I will have to generate w new one with: # X -configure And place in /etc/X11/xorg.conf then add the option:
Re: Xorg garbage mouse pointer in window edges and corners (NetBSD 10.0_RC3)
On Thu, 1 Feb 2024, Ramiro Aceves wrote: When I place mouse pointer over the edges or corners of xorg windows to resize them (same XFCE and CTWM), mouse pointer icon starts to show garbage drawing until it ends well shaped after 1 or 2 seconds. If you run the `modesetting` Xorg display-driver, you can try: Option "SWcursor" "on" -RVP
Xorg garbage mouse pointer in window edges and corners (NetBSD 10.0_RC3)
Hello, I have been experiencing this problem since I installed NeBSD on my intel Nuc 8i7BEH (Same 10.0_RC1, RC2 and RC3). When I place mouse pointer over the edges or corners of xorg windows to resize them (same XFCE and CTWM), mouse pointer icon starts to show garbage drawing until it ends well shaped after 1 or 2 seconds. I can live with it but it is very annoying to resize windows. I do not know if I have to fill a bug PR. Thanks in advance. Ramiro.