count of Luxembourg (as Henry II) from 1026 and duke of Bavaria from 1042 until his death (1005–1047)