Re: X11 fonts ugly

2003-08-14 Thread Anders Nordby
Hello,

There is a howto:

XFree86 Font De-uglification HOWTO
http://feenix.burgiss.net/ldp/fdu/

Also consider setting minimum font size in Mozilla font preferences.

(And this question should have been sent to the ports list, not here on
current.)

On Sun, Aug 10, 2003 at 04:09:41PM +0200, Christoph Kukulies wrote:
 I compiled XFree86/4.3.1 and installed mozilla 1.4 as package
 and when I start mozilla fonts show up unevenly weighted (rounding
 problems?)
 
 I wonder if this is a problem with the installed fonts themselves, 
 or with X11?
 
 XF86Config looks like this (regarding fontpath):
 
 Section Files
 
 RgbPath /usr/X11R6/lib/X11/rgb
 #FontPath   unix/:-1
 FontPath/usr/X11R6/lib/X11/fonts/local/
 FontPath/usr/X11R6/lib/X11/fonts/misc/
 FontPath/usr/X11R6/lib/X11/fonts/75dpi/:unscaled
 FontPath/usr/X11R6/lib/X11/fonts/100dpi/:unscaled
 FontPath/usr/X11R6/lib/X11/fonts/Type1/
 FontPath/usr/X11R6/lib/X11/fonts/CID/
 FontPath/usr/X11R6/lib/X11/fonts/Speedo/
 FontPath/usr/X11R6/lib/X11/fonts/75dpi/   
 FontPath/usr/X11R6/lib/X11/fonts/100dpi/
 EndSection  
 
 I read somewhere of antialiasing can be switched on or of
 but I forgot whether it was with X11, mozilla or NVIDIA driver
 compilation.
 
 
 --
 Chris Christoph P. U. Kukulies kukulies (at) rwth-aachen.de
 
 ___
 [EMAIL PROTECTED] mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-current
 To unsubscribe, send any mail to [EMAIL PROTECTED]


-- 
Anders.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: ipfw userland breaks again.

2002-12-15 Thread Anders Nordby
Hi,

On Sun, Dec 15, 2002 at 10:26:22AM -0800, Matthew Dillon wrote:
 This is complete BULLSHIT, Warner.  This patch exists precisely so
 the firewall can be turned on in secure mode.  It does not make it
 any easier to turn off then adding a rule:
 
 ipfw add 2 allow all from any to any
 
 So don't give me this bullshit about the patch being a security issue.
 YOU KNOW IT ISN'T.
 
 Now you are forcing me to go to core.  It's absolutely ridiculous and
 you know it.  Goddamn it, next time I won't even bother posting if all
 I get is this sort of crap.

How about sending the patch to the Technical Review Board, trb@ instead.

Thanks.

Cheers,

-- 
Anders.

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-current in the body of the message



Truss segfaults when tracing sshd

2002-08-31 Thread Anders Nordby


Submitter-Id:  current-users
Originator:Anders Nordby [EMAIL PROTECTED]
Organization:  
Confidential:  no 
Synopsis:  Truss segfaults when tracing sshd
Severity:  serious
Priority:  medium
Category:  bin
Class: sw-bug
Release:   FreeBSD 5.0-CURRENT i386
Environment:

FreeBSD current 5.0-CURRENT FreeBSD 5.0-CURRENT #0: Sat Aug 31 09:31:05 GMT 2002 
root@current:/usr/obj/usr/src/sys/MYGENERIC  i386

Filesystems mounted:

/dev/ad0s1a on / (ufs, local)
devfs on /dev (devfs, local)
/dev/ad0s1f on /tmp (ufs, local, soft-updates)
/dev/ad0s1g on /usr (ufs, local, soft-updates)
/dev/ad0s1e on /var (ufs, local, soft-updates)
eggsilo:/space/distfiles on /usr/ports/distfiles (nfs)
procfs on /proc (procfs, local)

The processor on the system is a 466 MHz Intel Celeron.

Description:

Find your sshd process:

# sockstat -l | grep sshd
root sshd   175   3  tcp6   *:22  *:*
root sshd   175   4  tcp4   *:22  *:*

Truss it through gdb:

# gdb truss
GNU gdb 5.2.0 (FreeBSD) 20020627
Copyright 2002 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type show copying to see the conditions.
There is absolutely no warranty for GDB.  Type show warranty for details.
This GDB was configured as i386-undermydesk-freebsd...
(no debugging symbols found)...
(gdb) run -p 175
Starting program: /usr/bin/truss -p 175

Now log in to the machine (I'm logging in as root), and return to gdb:

(no debugging symbols found)...(no debugging symbols found)...
Program received signal SIGSEGV, Segmentation fault.
0x08049c77 in free ()
(gdb) bt
#0  0x08049c77 in free ()
#1  0x2806d000 in ?? ()
#2  0x08049e3e in free ()
#3  0x0804eb6d in free ()
#4  0x08049182 in free ()
#5  0x08048d31 in free ()
(gdb)

How-To-Repeat:

On a vanilla -current system from today:

# truss -p `sockstat -l | egrep 'sshd.*tcp4' | awk '{print $3}'`

Log into the system with sshd, and truss will segfault:

Segmentation fault (core dumped)

This also seems to happen if you truss sshd while logging out another ssh
session.

Fix:

N/A

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-current in the body of the message



Avoid: Acer TravelMate laptop + -current

2002-05-01 Thread Anders Nordby

Hi,

While doing network installs of recent -current versions (FTP  NFS), I
have experienced a problem I can't live with - and which needs the
laptop to be sent to Acer to get fixed.

The problem is: the installation freezes (usually quite early in the
installation process, doing /bin or something), and after a hard reset
(power off + on), the darn craptop has PlatinumPAS - PreBoot
Authentication Services Verify enabled.. This is a protection mode
which needs a valid smartcard to unlock the computer, which makes the
BIOS not let you boot from anything. I didn't ask for it to get enabled,
and the smartcards I got with the computer are not valid. I can't even
boot a floppy at that stage, and I don't know of any way to fix it
except send it to Acer for repair (already did it once, I'm not happy
about doing it once more in one week).

I'm planning to stop using this laptop (since it belongs to my company:
ask them to throw it to the junkyard or something), unless there is some
neat trick to disable the PlatinumPAS thing, or if there's a solution to
making -current not switch it on. In the meantime: my advice for all
Acer TravelMate users is to not use or try -current on them.

Cheers,

-- 
Anders.

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-current in the body of the message



Re: Avoid: Acer TravelMate laptop + -current

2002-05-01 Thread Anders Nordby

On Wed, May 01, 2002 at 08:54:16PM +0200, Anders Nordby wrote:
 While doing network installs of recent -current versions (FTP  NFS), I
 have experienced a problem I can't live with - and which needs the
 laptop to be sent to Acer to get fixed.

I should add: my laptop is an Acer TravelMate 613 TXV laptop.

Cheers,

-- 
Anders.

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-current in the body of the message



How to make USB scanners work in FreeBSD (well at least Agfa ones..)

2002-03-24 Thread Anders Nordby

Hi,

Attached are patches that makes scanning work with sane, using an Agfa
Snapscan 1212U USB scanner for me. They are merely reworked from PRs
32652 and 32653 by [EMAIL PROTECTED]

NB: Only tested in 4.5-stable, not in -current (sorry). Patches should
apply cleanly in -stable.

It would be nice if more people could have a look at this, so that we
can get hopefully get it in the tree sometime soon.

Thanks.

-- 
Anders.


--- sys/dev/usb/usb.h.orig  Tue Oct 31 23:59:35 2000
+++ sys/dev/usb/usb.h   Wed Feb 20 01:52:35 2002
@@ -566,4 +566,7 @@
 #define USB_GET_CM_OVER_DATA   _IOR ('U', 130, int)
 #define USB_SET_CM_OVER_DATA   _IOW ('U', 131, int)
 
+/* Scanner device */
+#define USB_GET_DEVICE_ID  _IOR('U', 140, int)
+
 #endif /* _USB_H_ */


--- sys/dev/usb/uscanner.c.orig Thu Feb 14 03:52:50 2002
+++ sys/dev/usb/uscanner.c  Sun Feb 24 00:46:11 2002
@@ -222,6 +222,8 @@
 
int sc_refcnt;
u_char  sc_dying;
+   u_int16_t   sc_vendor_id;
+   u_int16_t   sc_product_id;
 };
 
 #if defined(__NetBSD__) || defined(__OpenBSD__)
@@ -233,7 +235,7 @@
 d_write_t uscannerwrite;
 d_ioctl_t uscannerioctl;
 d_poll_t  uscannerpoll;
-
+d_ioctl_t uscannerioctl;
 #define USCANNER_CDEV_MAJOR156
 
 Static struct cdevsw uscanner_cdevsw = {
@@ -289,6 +291,8 @@
sc-sc_dev_flags = uscanner_lookup(uaa-vendor, uaa-product)-flags;
 
sc-sc_udev = uaa-device;
+   sc-sc_vendor_id = uaa-vendor;
+   sc-sc_product_id = uaa-product;
 
err = usbd_set_config_no(uaa-device, 1, 1); /* XXX */
if (err) {
@@ -360,9 +364,10 @@
 
USB_GET_SC_OPEN(uscanner, unit, sc);
 
-   DPRINTFN(5, (uscanneropen: flag=%d, mode=%d, unit=%d\n, 
+   DPRINTFN(5, (uscanneropen: flag=%d, mode=%d, unit=%d\n,
 flag, mode, unit));
 
+   printf( uscanneropen()\n );
if (sc-sc_dying)
return (ENXIO);
 
@@ -696,9 +701,25 @@
 int
 uscannerioctl(dev_t dev, u_long cmd, caddr_t addr, int flag, struct proc *p)
 {
-   return (EINVAL);
+   struct uscanner_softc* sc;
+
+   USB_GET_SC( uscanner, USCANNERUNIT( dev ), sc );
+
+   if( sc-sc_dying )
+   return( EIO );
+
+   switch( cmd ) {
+   case USB_GET_DEVICE_ID:
+   *(u_int32_t*)addr = ( sc-sc_vendor_id  16 ) | sc-sc_product_id;
+   break;
+   default:
+   return EINVAL;
+   }
+   return 0;
 }
 
 #if defined(__FreeBSD__)
 DRIVER_MODULE(uscanner, uhub, uscanner_driver, uscanner_devclass, usbd_driver_load, 
0);
 #endif
+
+


diff -Nur sane-backends.old/files/patch-backend_snapscan.c 
sane-backends/files/patch-backend_snapscan.c
--- sane-backends.old/files/patch-backend_snapscan.cThu Jan  1 00:00:00 1970
+++ sane-backends/files/patch-backend_snapscan.cTue Mar  5 23:49:15 2002
@@ -0,0 +1,19 @@
+--- backend/snapscan.c.bak Sun Dec  9 22:51:01 2001
 backend/snapscan.c Sun Dec  9 22:51:01 2001
+@@ -1016,7 +1016,11 @@
+ 
+ vendor[0] = model[0] = '\0';
+ 
++#if defined( __FreeBSD__ )
++if(strstr (name, uscanner))
++#else /* __FreeBSD__ */
+ if((strstr (name, usb)) || (strstr (name, USB)))
++#endif /* __FreeBSD__ */
+ {
+ DBG (DL_VERBOSE, %s: Detected (kind of) an USB device\n, me);
+ 
+@@ -3540,3 +3544,4 @@
+  * Revision 1.1  1997/10/13  02:25:54  charter
+  * Initial revision
+  * */
++
diff -Nur sane-backends.old/files/patch-sanei_sanei_usb.c 
sane-backends/files/patch-sanei_sanei_usb.c
--- sane-backends.old/files/patch-sanei_sanei_usb.c Thu Jan  1 00:00:00 1970
+++ sane-backends/files/patch-sanei_sanei_usb.c Tue Mar  5 23:49:22 2002
@@ -0,0 +1,42 @@
+--- sanei/sanei_usb.c.bak  Sun Dec  9 22:40:14 2001
 sanei/sanei_usb.c  Sun Dec  9 22:49:04 2001
+@@ -112,6 +112,9 @@
+ SANE_Word * product)
+ {
+   SANE_Word vendorID, productID;
++#if defined( __FreeBSD__ )
++  u_int32_t vendorproductID;
++#endif /* __FreeBSD__ */
+ 
+ #if defined (__linux__)
+ #define IOCTL_SCANNER_VENDOR _IOR('U', 0x20, int)
+@@ -145,8 +148,24 @@
+   if (product)
+ *product = productID;
+ #else /* not defined (__linux__) */
++#if defined( __FreeBSD__ )
++#define USB_GET_DEVICE_ID _IOR('U', 140, int)
++  /* read the vendo and product IDs via the IOCTLs */
++  if( ioctl( fd, USB_GET_DEVICE_ID, vendorproductID ) == -1 )
++  {
++DBG( 3, sanei_usb_get_vendor_product: ioctl( productid ) of fd %d 
++failed: %s\n, fd, strerror( errno ) );
++  }
++  productID = vendorproductID  0x;
++  vendorID = ( vendorproductID  16 )  0x;
++  if( vendor )
++*vendor = vendorID;
++  if( product )
++*product = productID;
++#else /* __FreeBSD__ */
+   vendorID = 0;
+   productID = 0;
++#endif /* __FreeBSD__ */
+ #endif /* not defined (__linux__) */
+ 
+   if (!vendorID || !productID)
+@@ -309,3 +328,4 @@
+   *size = write_size;
+   return SANE_STATUS_GOOD;
+ }
++