Re: my experience with i915kms, newcons and k-11

2014-03-04 Thread Christoph Egger
Hi Robert!

Robert Millan r...@debian.org writes:
 On 23/02/2014 14:44, brunomaxi...@openmailbox.org wrote:
 Hi guys,
 I have feedback to you about my almost-test with i915kms on kfreebsd-11.
 I follow the instruction:
 kldload drm2
 kldload i915kms

 With latest kfreebsd-11 manual kldload drm2 shouldn't be required anymore, 
 just
 kldload i915kms. Does this work for you too?

Is there a recomended way to do that automatically? I have had i915kms
loaded from /etc/modules for a long time now and it works well on my
kfreebsd-10. However when I boot into kfreebsd-11 it seems to load
i915.ko. Unloading i915 and loading i915kms later on works fine and I
get a nice newcons and proper X after that but I'd like to have it
activated on boot!

  Christoph


-- 
To UNSUBSCRIBE, email to debian-bsd-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: https://lists.debian.org/87d2i2kzwq@mitoraj.siccegge.de



Re: my experience with i915kms, newcons and k-11

2014-03-04 Thread brunomaximom

Em 2014-02-27 20:26, Robert Millan escreveu:

On 27/02/2014 23:25, Robert Millan wrote:

On 27/02/2014 18:25, Christoph Egger wrote:
On Sun, Feb 23, 2014 at 11:44:35AM -0300, 
brunomaxi...@openmailbox.org wrote:

but, any input (mouse, touchpad, keyboard) doesn't work, so I can't
log in.
This is happening with you guys or just me? Any idea?
Thanks,


Happens for me since xserver 1.15 or something (very recent update in
jessie). I don't have any input working in any way (kfreebsd 9.2 or
9.3) with slim. I'll try to allocate some time to fix that but can't 
promise anything currently.


Probably HAL-related. xserver 1.15 works fine with the devd patch, I 
tested

that version just a few days ago.


Here's the most recent version. Also needs the Debian bits from:

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=736765#47


When that patch will be applied in the package?


--
To UNSUBSCRIBE, email to debian-bsd-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
https://lists.debian.org/9cf57ee862a34afa53474ab86e334...@openmailbox.org



Re: my experience with i915kms, newcons and k-11

2014-02-27 Thread Christoph Egger
On Sun, Feb 23, 2014 at 11:44:35AM -0300, brunomaxi...@openmailbox.org wrote:
 but, any input (mouse, touchpad, keyboard) doesn't work, so I can't
 log in.
 This is happening with you guys or just me? Any idea?
 Thanks,

Happens for me since xserver 1.15 or something (very recent update in
jessie). I don't have any input working in any way (kfreebsd 9.2 or
9.3) with slim. I'll try to allocate some time to fix that but can't promise 
anything currently.

  Christoph


-- 
To UNSUBSCRIBE, email to debian-bsd-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: https://lists.debian.org/20140227182559.ga15...@oteiza.siccegge.de



Re: my experience with i915kms, newcons and k-11

2014-02-27 Thread Robert Millan
On 27/02/2014 18:25, Christoph Egger wrote:
 On Sun, Feb 23, 2014 at 11:44:35AM -0300, brunomaxi...@openmailbox.org wrote:
 but, any input (mouse, touchpad, keyboard) doesn't work, so I can't
 log in.
 This is happening with you guys or just me? Any idea?
 Thanks,
 
 Happens for me since xserver 1.15 or something (very recent update in
 jessie). I don't have any input working in any way (kfreebsd 9.2 or
 9.3) with slim. I'll try to allocate some time to fix that but can't promise 
 anything currently.

Probably HAL-related. xserver 1.15 works fine with the devd patch, I tested
that version just a few days ago.

-- 
Robert Millan


-- 
To UNSUBSCRIBE, email to debian-bsd-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: https://lists.debian.org/530fc950.2090...@debian.org



Re: my experience with i915kms, newcons and k-11

2014-02-27 Thread Robert Millan
On 27/02/2014 23:25, Robert Millan wrote:
 On 27/02/2014 18:25, Christoph Egger wrote:
 On Sun, Feb 23, 2014 at 11:44:35AM -0300, brunomaxi...@openmailbox.org wrote:
 but, any input (mouse, touchpad, keyboard) doesn't work, so I can't
 log in.
 This is happening with you guys or just me? Any idea?
 Thanks,

 Happens for me since xserver 1.15 or something (very recent update in
 jessie). I don't have any input working in any way (kfreebsd 9.2 or
 9.3) with slim. I'll try to allocate some time to fix that but can't promise 
 anything currently.
 
 Probably HAL-related. xserver 1.15 works fine with the devd patch, I tested
 that version just a few days ago.

Here's the most recent version. Also needs the Debian bits from:

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=736765#47

-- 
Robert Millan
From d96e2bd2a2b48ede527ad7071d3e0eeda9861b73 Mon Sep 17 00:00:00 2001
From: Robert Millan r...@debian.org
Date: Mon, 24 Feb 2014 23:22:57 +0100
Subject: [PATCH] Add devd config backend for FreeBSD (and GNU/kFreeBSD)

Based on original code by Baptiste Daroussin, with some fixes made
by Koop Mast and myself.

Signed-off-by: Robert Millan r...@freebsd.org
---
 config/Makefile.am  |4 +
 config/config-backends.h|5 +
 config/config.c |5 +
 config/devd.c   |  387 +++
 configure.ac|   16 ++
 hw/xfree86/common/xf86Config.c  |7 +-
 hw/xfree86/common/xf86Globals.c |3 +-
 include/dix-config.h.in |3 +
 8 files changed, 427 insertions(+), 3 deletions(-)
 create mode 100644 config/devd.c

diff --git a/config/Makefile.am b/config/Makefile.am
index 0e20e8b..16f8aaa 100644
--- a/config/Makefile.am
+++ b/config/Makefile.am
@@ -34,6 +34,10 @@ if CONFIG_WSCONS
 libconfig_la_SOURCES += wscons.c
 endif # CONFIG_WSCONS
 
+if CONFIG_DEVD
+libconfig_la_SOURCES += devd.c
+endif
+
 endif # !CONFIG_HAL
 
 endif # !CONFIG_UDEV
diff --git a/config/config-backends.h b/config/config-backends.h
index 5f07557..889e2ad 100644
--- a/config/config-backends.h
+++ b/config/config-backends.h
@@ -44,3 +44,8 @@ void config_hal_fini(void);
 int config_wscons_init(void);
 void config_wscons_fini(void);
 #endif
+
+#ifdef CONFIG_DEVD
+int config_devd_init(void);
+void config_devd_fini(void);
+#endif
diff --git a/config/config.c b/config/config.c
index 760cf19..cca5a31 100644
--- a/config/config.c
+++ b/config/config.c
@@ -53,6 +53,9 @@ config_init(void)
 #elif defined(CONFIG_WSCONS)
 if (!config_wscons_init())
 ErrorF([config] failed to initialise wscons\n);
+#elif defined(CONFIG_DEVD)
+if (!config_devd_init())
+ErrorF([config] failed to initialise devd\n);
 #endif
 }
 
@@ -65,6 +68,8 @@ config_fini(void)
 config_hal_fini();
 #elif defined(CONFIG_WSCONS)
 config_wscons_fini();
+#elif defined(CONFIG_DEVD)
+config_devd_fini();
 #endif
 }
 
diff --git a/config/devd.c b/config/devd.c
new file mode 100644
index 000..92a66c4
--- /dev/null
+++ b/config/devd.c
@@ -0,0 +1,387 @@
+/*
+ * Copyright © 2012 Baptiste Daroussin
+ * Copyright © 2014 Robert Millan
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the Software),
+ * to deal in the Software without restriction, including without limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice (including the next
+ * paragraph) shall be included in all copies or substantial portions of the
+ * Software.
+ *
+ * THE SOFTWARE IS PROVIDED AS IS, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+ * DEALINGS IN THE SOFTWARE.
+ *
+ * Author: Baptiste Daroussin b...@freebsd.org
+ */
+
+#ifdef HAVE_DIX_CONFIG_H
+#include dix-config.h
+#endif
+
+#include sys/types.h
+#include sys/socket.h
+#include sys/sysctl.h
+#include sys/un.h
+
+#include ctype.h
+#include errno.h
+#include fcntl.h
+#include stdlib.h
+#include stdio.h
+#include stdarg.h
+#include stdbool.h
+#include unistd.h
+
+#include input.h
+#include inputstr.h
+#include hotplug.h
+#include config-backends.h
+#include os.h
+
+#define DEVD_SOCK_PATH /var/run/devd.pipe
+
+#define DEVD_EVENT_ADD		'+'
+#define DEVD_EVENT_REMOVE	'-'
+
+static int sock_devd = -1;
+
+struct hw_type {
+const char *driver;
+int flag;
+const char *xdriver;
+};
+
+static struct hw_type hw_types[] = {
+{ukbd, 

Re: my experience with i915kms, newcons and k-11

2014-02-27 Thread Christoph Egger
Hi!

Robert Millan r...@debian.org writes:
 On 27/02/2014 23:25, Robert Millan wrote:
 On 27/02/2014 18:25, Christoph Egger wrote:
 On Sun, Feb 23, 2014 at 11:44:35AM -0300, brunomaxi...@openmailbox.org 
 wrote:
 but, any input (mouse, touchpad, keyboard) doesn't work, so I can't
 log in.
 This is happening with you guys or just me? Any idea?
 Thanks,

 Happens for me since xserver 1.15 or something (very recent update in
 jessie). I don't have any input working in any way (kfreebsd 9.2 or
 9.3) with slim. I'll try to allocate some time to fix that but can't 
 promise anything currently.
 
 Probably HAL-related. xserver 1.15 works fine with the devd patch, I tested
 that version just a few days ago.

 Here's the most recent version. Also needs the Debian bits from:

 https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=736765#47

Works perfectly with the devd patch!

Thanks

  Christoph

-- 
9FED 5C6C E206 B70A 5857  70CA 9655 22B9 D49A E731
Debian Developer | Lisp Hacker | CaCert Assurer


pgph_Zks_9brt.pgp
Description: PGP signature


my experience with i915kms, newcons and k-11

2014-02-23 Thread brunomaximom

Hi guys,
I have feedback to you about my almost-test with i915kms on kfreebsd-11.
I follow the instruction:
kldload drm2
kldload i915kms
startx (here i have gnome shell installed, the X starts fine but I got a 
Oops[...] message from Gnome
then I return to tty1 and kill startx, and /etc/init.d/lightdm start, it 
works
but, any input (mouse, touchpad, keyboard) doesn't work, so I can't log 
in.

This is happening with you guys or just me? Any idea?
Thanks,


--
To UNSUBSCRIBE, email to debian-bsd-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/026e50bebbf891ddccbcd2d2a6667...@openmailbox.org



Re: my experience with i915kms, newcons and k-11

2014-02-23 Thread Robert Millan

Hi Bruno,

On 23/02/2014 14:44, brunomaxi...@openmailbox.org wrote:
 Hi guys,
 I have feedback to you about my almost-test with i915kms on kfreebsd-11.
 I follow the instruction:
 kldload drm2
 kldload i915kms

With latest kfreebsd-11 manual kldload drm2 shouldn't be required anymore, 
just
kldload i915kms. Does this work for you too?

 startx (here i have gnome shell installed, the X starts fine but I got a 
 Oops[...] message from Gnome

GNOME is a lost cause I'm afraid :-(

 then I return to tty1 and kill startx, and /etc/init.d/lightdm start, it 
 works

Did you try VT switching after X has started? It should work with zero delay 
(no mode
switch).

 but, any input (mouse, touchpad, keyboard) doesn't work, so I can't log in.
 This is happening with you guys or just me? Any idea?

This is most likely HAL-induced breakage. My devd patch should fix it, but I 
find
it a bit scary that it completely broke keyboard/mouse for you. Does this happen
every time for you, or just in this situation?

-- 
Robert Millan


-- 
To UNSUBSCRIBE, email to debian-bsd-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/530a6672.7070...@debian.org



Re: my experience with i915kms, newcons and k-11

2014-02-23 Thread brunomaximom

Em 2014-02-23 18:21, Robert Millan escreveu:

Hi Bruno,

On 23/02/2014 14:44, brunomaxi...@openmailbox.org wrote:

Hi guys,
I have feedback to you about my almost-test with i915kms on 
kfreebsd-11.

I follow the instruction:
kldload drm2
kldload i915kms


With latest kfreebsd-11 manual kldload drm2 shouldn't be required
anymore, just
kldload i915kms. Does this work for you too?


yes, no problem!

then I return to tty1 and kill startx, and /etc/init.d/lightdm start, 
it works


Did you try VT switching after X has started? It should work with zero
delay (no mode
switch).



Yes, apparently works well.

but, any input (mouse, touchpad, keyboard) doesn't work, so I can't 
log in.

This is happening with you guys or just me? Any idea?


This is most likely HAL-induced breakage. My devd patch should fix it,
but I find
it a bit scary that it completely broke keyboard/mouse for you. Does 
this happen

every time for you, or just in this situation?


just in this situation.


--
To UNSUBSCRIBE, email to debian-bsd-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/ad3848c97624ba8b928d16fda8559...@openmailbox.org